]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: disable GC during calibration test
authorRhys Hiltner <rhys@justin.tv>
Sat, 30 Oct 2021 00:35:30 +0000 (17:35 -0700)
committerMichael Pratt <mpratt@google.com>
Wed, 3 Nov 2021 15:59:11 +0000 (15:59 +0000)
commit5f0e5d21bb1f2c1baf15bfd90ad5b090b88e6292
tree3f9f8aa84b61531fb0148c8d0f0a8d9a59e73dde
parentc143661568dc23badd4ba04f4193658fc1fd9c33
runtime/pprof: disable GC during calibration test

TestCPUProfileMultithreadMagnitude compares Go's CPU profile against the
OS's accounting of the process's execution time, expecting them to be
near equal. Background work from the runtime (especially in the garbage
collector) can add significant noise to that measurement and flakiness
to the test. Disable automatic GC cycles during the test.

Updates #49065

Change-Id: Ie88895bfea17374278c5187f3a83e9f486bd37fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/359934
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
src/runtime/pprof/pprof_test.go