]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: run TestCPUProfileMultithreadMagnitude subtests separately
authorMichael Pratt <mpratt@google.com>
Thu, 16 Dec 2021 20:30:47 +0000 (15:30 -0500)
committerMichael Pratt <mpratt@google.com>
Mon, 10 Jan 2022 16:48:38 +0000 (16:48 +0000)
commita40c7b1c77bb8eaaf42e15703a57b9379efc710c
tree4d514b4a64b6f10416e257a06c1fdd227282d99b
parent6df0957060b1315db4fd6a359eefc3ee92fcc198
runtime/pprof: run TestCPUProfileMultithreadMagnitude subtests separately

Currently TestCPUProfileMultithreadMagnitude runs two CPU consumption
functions in a single profile and then analyzes the results as separate
subtests.

This works fine, but when debugging failures it makes manual analysis of
the profile dump a bit annoying.

Refactor the test to collect separate profiles for each subtest for
easier future analysis.

For #50097.
For #50232.

Change-Id: Ia1c8bb86aaaf652e64c5e660dcc2da47d2194c2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/372800
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Rhys Hiltner <rhys@justin.tv>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/runtime/pprof/pprof_test.go