mirror of https://github.com/golang/go.git
Force heap sampling on memprof test program for determinism
This commit is contained in:
parent
d660914ab9
commit
7d34aff8f1
|
|
@ -14,6 +14,8 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
// Force heap sampling for determinism.
|
||||
runtime.MemProfileRate = 1
|
||||
register("MemProf", MemProf)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue