diff options
Diffstat (limited to 'src/runtime/trace2.go')
-rw-r--r-- | src/runtime/trace2.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/trace2.go b/src/runtime/trace2.go index d40596f39b..673205dda8 100644 --- a/src/runtime/trace2.go +++ b/src/runtime/trace2.go @@ -516,6 +516,9 @@ func traceAdvance(stopTrace bool) { } statusWriter.flush().end() + // Read everything out of the last gen's CPU profile buffer. + traceReadCPU(gen) + systemstack(func() { // Flush CPU samples, stacks, and strings for the last generation. This is safe, // because we're now certain no M is writing to the last generation. |