-
Notifications
You must be signed in to change notification settings - Fork 3
Add cpu profiling start/stop endpoints #11
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
Conversation
Pull Request Test Coverage Report for Build 3641572578
💛 - Coveralls |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
| uri = HTTP.URI(req.target) | ||
| qp = HTTP.queryparams(uri) | ||
| with_pprof = parse(Bool, get(qp, "pprof", default_pprof())) | ||
| return _stop_cpu_profile(with_pprof) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to @quinnj's suggestion to stop the profile as soon as possible, and then do the rest of this work after it's stopped.
|
okay, i re-ran the profiling via the different endpoints ( |
| resp = HTTP.Response(200, "Allocation profiling started.") | ||
| Profile.Allocs.clear() | ||
| Profile.Allocs.start(; sample_rate) | ||
| return HTTP.Response(200, "Allocation profiling started.") | ||
| return resp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
genius
NHDaly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! :) Thanks @nickrobinson251
|
Awesome! 😊 |
Pull Request Test Coverage Report for Build 3641552542Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 3638763327Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
No description provided.