aboutsummaryrefslogtreecommitdiff
path: root/src/internal/trace
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2025-11-13 22:36:45 +0000
committerGopher Robot <gobot@golang.org>2025-11-13 15:16:31 -0800
commit704f841eab87462d4eefac07345c96f71fb6e964 (patch)
tree32164902dc71a83f6502dbba2f8dba459687f211 /src/internal/trace
parent17a02b910697800032aa686548992a554e8e9d82 (diff)
downloadgo-704f841eab87462d4eefac07345c96f71fb6e964.tar.xz
cmd/trace: annotation proc start/stop with thread and proc always
In the proc view, the thread ID is useful. In the thread view, the proc ID is useful. Add both in both cases forever more. Change-Id: I9cb7bd67a21ee17d865c25d73b2049b3da7aefbc Reviewed-on: https://go-review.googlesource.com/c/go/+/720402 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/internal/trace')
-rw-r--r--src/internal/trace/traceviewer/format/format.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/internal/trace/traceviewer/format/format.go b/src/internal/trace/traceviewer/format/format.go
index 83f3276704..2ec4dd4bdc 100644
--- a/src/internal/trace/traceviewer/format/format.go
+++ b/src/internal/trace/traceviewer/format/format.go
@@ -74,6 +74,7 @@ type ThreadCountersArg struct {
InSyscall int64
}
-type ThreadIDArg struct {
- ThreadID uint64
+type SchedCtxArg struct {
+ ThreadID uint64 `json:"thread,omitempty"`
+ ProcID uint64 `json:"proc,omitempty"`
}