]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify trace buffer management around footer
authorAustin Clements <austin@google.com>
Thu, 11 Aug 2022 16:08:35 +0000 (12:08 -0400)
committerAustin Clements <austin@google.com>
Thu, 11 Aug 2022 20:16:32 +0000 (20:16 +0000)
commitb648591b705490d14147f3beb66c68be9a97c5b5
tree254eb794c5834c2f1fb5c5fcda725cb955998b50
parent0293a1f308b805035e50c9c40af29f72389e4b73
runtime: simplify trace buffer management around footer

Writing out the trace footer currently manages trace buffers
differently from the rest of trace code. Rearrange it so it looks like
the rest of the code. In particular, we now write the frequency event
out to the trace buffer rather than returning it in a special byte
slice, and (*traceStackTable).dump threads a traceBufPtr like most
other functions that write to the trace buffers.

Change-Id: I3d0e108e56df884e7bd19823310dfbc0e21af9a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/422974
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/trace.go