Force heap sampling on memprof test program for determinism

This commit is contained in:
Raul Silvera 2019-01-17 13:47:53 -08:00
parent d660914ab9
commit 7d34aff8f1
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ import (
) )
func init() { func init() {
// Force heap sampling for determinism.
runtime.MemProfileRate = 1
register("MemProf", MemProf) register("MemProf", MemProf)
} }