-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add NoProfile #31
Comments
This sounds good to me considering that:
|
Some thoughts I have on this are:
var p interface {
Stop()
}
if condition {
p = profile.Start(/* your options */)
}
// ...
if p != nil {
p.Stop()
} Am I misunderstanding something or is this the same use case? |
Hello, is this issue still valid ? |
For programs that have both non-trivial shutdown hook plumbing and flags controlling profiling, it'd be convenient to have a NoProfile option with a no-op Stop function. I'll send a PR if you're amenable.
The text was updated successfully, but these errors were encountered: