]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: accept fewer PCs
authorAustin Clements <austin@google.com>
Wed, 19 Apr 2017 20:06:46 +0000 (16:06 -0400)
committerAustin Clements <austin@google.com>
Thu, 20 Apr 2017 19:46:36 +0000 (19:46 +0000)
commit4a4398825f84af9e46400bc1ff6a5feaa38e9a58
tree016eaa525efee61ab7f636a932e882cd6cf8b818
parent565807566e08907d8b37569c8d044c0ef220b45b
runtime/pprof: accept fewer PCs

TestBlockProfile currently requires exactly five PCs in each sample.
With more aggressive inlining there may be fewer, so change this test
to use the same pattern as TestMutexProfile, which accepts one or more
PCs. With this change, this test passes when compiled with -l=4.

Change-Id: I1421a6d56c96b77111bdc671d88723a222672fd6
Reviewed-on: https://go-review.googlesource.com/41110
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Lazar <lazard@golang.org>
src/runtime/pprof/pprof_test.go