]> Cypherpunks repositories - gostls13.git/commit
cmd/trace/v2: add thread-oriented mode for v2 traces
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 20 Nov 2023 07:28:37 +0000 (07:28 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 21 Nov 2023 21:29:53 +0000 (21:29 +0000)
commit971f59399fd7a53dc0744a949084080c85b3c62b
tree4e8aa4a4170e0553a15212189d610aca707ba016
parent90ba4452530f7a380e7fb4936569f53879fd5955
cmd/trace/v2: add thread-oriented mode for v2 traces

This is a nice-to-have that's now straightforward to do with the new
trace format. This change adds a new query variable passed to the
/trace endpoint called "view," which indicates the type of view to
use. It is orthogonal with task-related views.

Unfortunately a goroutine-based view isn't included because it's too
likely to cause the browser tab to crash.

For #60773.
For #63960.

Change-Id: Ifbcb8f2d58ffd425819bdb09c586819cb786478d
Reviewed-on: https://go-review.googlesource.com/c/go/+/543695
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>
src/cmd/trace/main.go
src/cmd/trace/v2/gstate.go
src/cmd/trace/v2/jsontrace.go
src/cmd/trace/v2/jsontrace_test.go
src/cmd/trace/v2/main.go
src/cmd/trace/v2/threadgen.go [new file with mode: 0644]
src/internal/trace/traceviewer/emitter.go
src/internal/trace/traceviewer/http.go
src/internal/trace/traceviewer/mmu.go