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

bind pprof handlers to Filecoin muxer #1080

Merged
merged 0 commits into from
Oct 8, 2018
Merged

Conversation

laser
Copy link
Contributor

@laser laser commented Oct 8, 2018

Fixes #1079

What's in this PR?

  • import pprof and bind handlers to our muxer

How to use this stuff

  • bring daemon online
  • make request to take, e.g. CPU profile curl 'http://localhost:${CMDAPI_PORT}/debug/pprof/profile?seconds=15' > /tmp/profile.dump
  • open w/pprof e.g. go tool pprof /tmp/profile.dump

@laser laser changed the title [WIP - DO NOT MERGE] spin up new HTTP server for pprof bind pprof handlers to Filecoin muxer Oct 8, 2018
@laser laser requested a review from dignifiedquire October 8, 2018 16:11
@laser
Copy link
Contributor Author

laser commented Oct 8, 2018

As per @dignifiedquire, I'm going to

ship it

@laser laser merged commit ddd4748 into master Oct 8, 2018
@laser laser deleted the chores/1079-pprof-support branch October 8, 2018 16:44
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

Successfully merging this pull request may close these issues.

2 participants