Skip to content

Commit

Permalink
cmd/trace: add new command
Browse files Browse the repository at this point in the history
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/3601
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
dvyukov committed Feb 20, 2015
1 parent 58125ff commit edadffa
Show file tree
Hide file tree
Showing 11 changed files with 4,768 additions and 666 deletions.
6 changes: 6 additions & 0 deletions misc/trace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This directory contains helper file for trace viewer (go tool trace).

trace_viewer_lean.html was generated following instructions in:
https://github.com/google/trace-viewer/wiki/Embedding
on revision 895aa74558d19d91906fb720df6458244ef160c6 using:
trace-viewer$ ./vulcanize_trace_viewer --config=lean
Loading

0 comments on commit edadffa

Please sign in to comment.