aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql_test.go
diff options
context:
space:
mode:
authorRhys Hiltner <rhys@justin.tv>2021-10-29 17:35:30 -0700
committerMichael Pratt <mpratt@google.com>2021-11-03 15:59:11 +0000
commit5f0e5d21bb1f2c1baf15bfd90ad5b090b88e6292 (patch)
tree3f9f8aa84b61531fb0148c8d0f0a8d9a59e73dde /src/database/sql/sql_test.go
parentc143661568dc23badd4ba04f4193658fc1fd9c33 (diff)
downloadgo-5f0e5d21bb1f2c1baf15bfd90ad5b090b88e6292.tar.xz
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>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions