Commit Graph

3 Commits

Author SHA1 Message Date
Raul Silvera 471f747af8 Force full sampling of memory allocations only for MemProf
Also reduce the number of allocations in this testcase, as it no
longer requires many allocations to trigger sampling.
2019-01-17 16:03:55 -08:00
Raul Silvera 7d34aff8f1 Force heap sampling on memprof test program for determinism 2019-01-17 13:47:53 -08:00
Ian Lance Taylor 252eda470a cmd/pprof: don't use offset if we don't have a start address
The test is in the runtime package because there are other tests of
pprof there. At some point we should probably move them all into a pprof
testsuite.

Fixes #16128.

Change-Id: Ieefa40c61cf3edde11fe0cf04da1debfd8b3d7c0
Reviewed-on: https://go-review.googlesource.com/24274
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-06-21 01:44:38 +00:00