]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: add new command
authorDmitry Vyukov <dvyukov@google.com>
Fri, 30 Jan 2015 10:31:43 +0000 (13:31 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 20 Feb 2015 18:31:25 +0000 (18:31 +0000)
commitedadffa2f3464c48a234f3cf2fc092a03f91824f
treefc7dd9d08e516a32614f20fb38bfbed8e15db030
parent58125ffe73ccae5c625d31a02194aa571ac34939
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/3601
Reviewed-by: Andrew Gerrand <adg@golang.org>
misc/trace/README.md [new file with mode: 0644]
misc/trace/trace_viewer_lean.html [new file with mode: 0644]
src/cmd/go/pkg.go
src/cmd/trace/goroutines.go [new file with mode: 0644]
src/cmd/trace/main.go [new file with mode: 0644]
src/cmd/trace/pprof.go [new file with mode: 0644]
src/cmd/trace/trace.go [new file with mode: 0644]
src/internal/trace/parser.go [new file with mode: 0644]
src/runtime/pprof/trace_parser_test.go [deleted file]
src/runtime/pprof/trace_test.go
src/runtime/trace.go