go/src/cmd/trace
Michael Matloob cc700bdc26 cmd/trace: move viewer data structs into cmd/internal/traceviewer
The ViewerEvent, ViewerData and ViewerFrame structs are moved into
cmd/internal/traceviewer, and renamed Event, Data, and Frame.

The structs are the same, except for the following: A definition
for the JSON "bp" field that's defined in the trace format, but
missing in the structs has been added. Also, the Tid and Pid fields
on Event have been renamed TID and PID to better match Go style.
Finally, the footer field on ViewerData, which hasn't been used
for a while, has been removed.

This CL is in preparation for the usage of these structs by cmd/go's
tracing functionality.

Updates #38714

Change-Id: I345f23617b96d4629b876ae717f89d56a67e05a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/239098
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
2020-08-12 18:34:48 +00:00
..
annotations.go cmd/trace: fix the broken link in region pages and improve UX 2020-04-21 14:57:43 +00:00
annotations_test.go cmd/trace: revert internal/traceparser 2018-11-22 02:59:55 +00:00
doc.go cmd/trace: document that trace viewer is only tested on chromium 2017-04-20 16:44:55 +00:00
goroutines.go cmd/trace: fix the broken link in region pages and improve UX 2020-04-21 14:57:43 +00:00
main.go cmd/trace: revert internal/traceparser 2018-11-22 02:59:55 +00:00
mmu.go cmd/trace: revert internal/traceparser 2018-11-22 02:59:55 +00:00
pprof.go all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00
trace.go cmd/trace: move viewer data structs into cmd/internal/traceviewer 2020-08-12 18:34:48 +00:00
trace_test.go cmd/trace: move viewer data structs into cmd/internal/traceviewer 2020-08-12 18:34:48 +00:00
trace_unix_test.go cmd/trace: move viewer data structs into cmd/internal/traceviewer 2020-08-12 18:34:48 +00:00