-
Notifications
You must be signed in to change notification settings - Fork 487
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
Set mutex and block profiling #6311
Conversation
I ran this at 50% and default 0.1% and both gave me some data with a simple setup. |
The only downside here is the inability to turn it off entirely, if we really wanted that then I can add a path for 0. |
(To be clear, my "request changes" was only for my comment about SetBlockProfilingRate; everything else is a nit) |
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. If we see that the impact of the defaults are more than we want, we might want to consider changing the defaults to align with Go (i.e., disabled by default). But we won't really know until we try so
* Add some environment hooks and set a default to 00.1 percent. * add changelog * fix name in message * always enable it even on failure to parse * more cleanup * fix lint * Fix issue and naming * add more context * rename vars
PR Description
Which issue(s) this PR fixes
I am explicitly not listing the settings in the docs at this time, since we may figure out the default is good enough and can ignore using them.
Notes to the Reviewer
PR Checklist