Skip to content
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

testing: test.memprofilerate documentation is not accurate #16404

bradfitz opened this issue Jul 18, 2016 · 1 comment


None yet
3 participants
Copy link

commented Jul 18, 2016

The docs for the -test.memprofilerate flag say "if >= 0", but the code is simply greater, not greater than or equal:

~/go/src/testing$ git grep memProfileRate
testing.go:     memProfileRate   = flag.Int("test.memprofilerate", 0, "if >=0, sets runtime.MemProfileRate")
testing.go:     if *memProfileRate > 0 {
testing.go:             runtime.MemProfileRate = *memProfileRate

And the default is 512KB, not 0:

@bradfitz bradfitz changed the title testing: test.memprofilerate document is not accurate testing: test.memprofilerate documentation is not accurate Jul 18, 2016

@quentinmit quentinmit added this to the Go1.8 milestone Jul 20, 2016

@quentinmit quentinmit added the NeedsFix label Oct 10, 2016


This comment has been minimized.

Copy link

commented Oct 18, 2016

CL mentions this issue.

@gopherbot gopherbot closed this in 1188569 Oct 18, 2016

@golang golang locked and limited conversation to collaborators Oct 18, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.