From 704f841eab87462d4eefac07345c96f71fb6e964 Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Thu, 13 Nov 2025 22:36:45 +0000 Subject: 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 Reviewed-by: Michael Pratt Auto-Submit: Michael Knyszek --- src/internal/trace/traceviewer/format/format.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/internal') 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"` } -- cgit v1.3-5-g9baa