aboutsummaryrefslogtreecommitdiff
path: root/src/internal/trace
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2025-01-29 17:17:04 +0000
committerGopher Robot <gobot@golang.org>2025-02-11 11:23:24 -0800
commitb5f34aa4abc1ae49b9f97355deb5ab097d0c68a9 (patch)
treee5ac2e62164dcc1478116668f6ada07e3d77a31b /src/internal/trace
parent0158ddad9893ea1ab332be39f192aefdbd7b65c8 (diff)
downloadgo-b5f34aa4abc1ae49b9f97355deb5ab097d0c68a9.tar.xz
runtime: use internal/trace/tracev2 definitions
This change deduplicates trace wire format definitions between the runtime and the trace parser by making the internal/trace/tracev2 package the source of truth. Change-Id: Ia0721d3484a80417e40ac473ec32870bee73df09 Reviewed-on: https://go-review.googlesource.com/c/go/+/644221 Auto-Submit: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/internal/trace')
-rw-r--r--src/internal/trace/tracev2/doc.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/internal/trace/tracev2/doc.go b/src/internal/trace/tracev2/doc.go
new file mode 100644
index 0000000000..725fc0821d
--- /dev/null
+++ b/src/internal/trace/tracev2/doc.go
@@ -0,0 +1,11 @@
+// Copyright 2025 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+Package tracev2 contains definitions for the v2 execution trace wire format.
+
+These definitions are shared between the trace parser and the runtime, so it
+must not depend on any package that depends on the runtime (most packages).
+*/
+package tracev2