cmd/trace: add new command
Trace command allows to visualize and analyze traces. Run as: $ go tool trace binary trace.file The commands opens web browser with the main page, which contains links for trace visualization, blocking profiler, network IO profiler and per-goroutine traces. Also move trace parser from runtime/pprof/trace_parser_test.go to internal/trace/parser.go, so that it can be shared between tests and the command. Change-Id: Ic97ed59ad6e4c7e1dc9eca5e979701a2b4aed7cf Reviewed-on: https://go-review.googlesource.com/3601Reviewed-by:Andrew Gerrand <adg@golang.org>
Showing
misc/trace/README.md
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
src/cmd/trace/goroutines.go
0 → 100644
src/cmd/trace/main.go
0 → 100644
src/cmd/trace/pprof.go
0 → 100644
src/cmd/trace/trace.go
0 → 100644
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment