Documentation ¶
Overview ¶
The stackgraph command reads a Go stack trace (as produced by a Go panic) from its standard input and writes an SVG file suitable for viewing in a web browser on its standard output. It assumes that graphviz is installed.
All the dot(1) heuristics were unashamedly stolen from go tool pprof.
Example
$ stackgraph < file-containing-go-panic > /tmp/x.svg # open web browser on file:///tmp/x.svg
Click to show internal directories.
Click to hide internal directories.