]> Cypherpunks repositories - gostls13.git/commit
runtime/trace: add a trace validation test for different trace orders
authorCarlos Amedee <carlos@golang.org>
Fri, 23 May 2025 20:41:51 +0000 (16:41 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 27 May 2025 20:02:21 +0000 (13:02 -0700)
commitc8c3d661b084c01242fa7837e3853d7492ba1717
tree1e495a41e18360fcbdf4f51ee407c722806c1f85
parent0e1b14bc2e13aed697854e3859f73ba4dba9fb22
runtime/trace: add a trace validation test for different trace orders

This adds a test which validates the traces generated by the execution
tracer and the flight recorder depending on the order where they are
stopped and started. This test uncovered that under certain
circumstances, the traces which were produced would possibly be
missing the trace header. All traces have the trace headers included
now. Clock snapshot checks have been disabled for Windows and WASM.

Change-Id: I5be719d228300469891fc56817fbce4ba5453fff
Reviewed-on: https://go-review.googlesource.com/c/go/+/675975
Auto-Submit: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/trace/subscribe.go
src/runtime/trace/subscribe_test.go [new file with mode: 0644]