New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: add --benchmem flag to benchmark command #2432
Labels
Comments
But it's not the question, it's feature request: it would be great to add |
Yes, we should maybe refit that command to a Go benchmark ... |
I think, it could be implemented like that: var mem runtime.MemStats
runtime.ReadMemStats(&mem)
before := mem.Alloc
// operations...
runtime.ReadMemStats(&mem)
after := mem.Alloc
memUsage := after - before
// print memUsage |
n10v
added a commit
to n10v/hugo
that referenced
this issue
Nov 17, 2016
* Add information about average time, memory consumption and allocations. * Fix situation, when user provides memprofile and cpuprofile, but cpuprofile will not created. Fixes gohugoio#2432
bep
pushed a commit
that referenced
this issue
Nov 18, 2016
* Add information about average time, memory consumption and allocations. * Fix situation, when user provides memprofile and cpuprofile, but cpuprofile will not created. Fixes #2432
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to see, how many memory
hugo
consumes in the same way asgo test -bench=. --benchmem
do.The text was updated successfully, but these errors were encountered: