Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for standalone flamegraph svg files #427

Closed
ShaneHarvey opened this issue Oct 12, 2018 · 1 comment
Closed

Support for standalone flamegraph svg files #427

ShaneHarvey opened this issue Oct 12, 2018 · 1 comment

Comments

@ShaneHarvey
Copy link

The flamegraph support added in #166 is great, however it's difficult to share this information with others (in emails, bug trackers, etc..). It would be nice if there was a -flamegraph command line option to output a flamegraph svg file. Something like: go tool pprof -flamegraph ./binary ./profile.pprof

To accomplish this right now, one has to:

  1. Install go-torch: go get github.com/uber/go-torch
  2. Install brendangregg/FlameGraph
  3. Finally, generate the svg: go-torch -b ./profile.pprof --binaryname ./binary. (make sure FlameGraph is on your PATH)
@ShaneHarvey
Copy link
Author

Closing as a duplicate of #401.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant