You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Aliaksandr Valialkin, Henrik Johansson, Alexey Palazhchenko and Antek Baranski
Calling it NoProfile would create some stutter in the external context, where you would use it as profile.NoProfile. Personally I would prefer something like profile.Off if this is something that we really need.
Would you be able to provide a more thorough example of how you would use this? As far as I can see it, the current implementation already allows you to conditionally run profiles via flags or other means. I think adding this additional code might unnecessarily complicate an otherwise simple package, unless I'm missing the point. You can simply do something like:
Activity
gbbr commentedon Sep 18, 2017
This sounds good to me considering that:
gbbr commentedon Sep 18, 2017
Some thoughts I have on this are:
Calling it
NoProfilewould create some stutter in the external context, where you would use it asprofile.NoProfile. Personally I would prefer something likeprofile.Offif this is something that we really need.Would you be able to provide a more thorough example of how you would use this? As far as I can see it, the current implementation already allows you to conditionally run profiles via flags or other means. I think adding this additional code might unnecessarily complicate an otherwise simple package, unless I'm missing the point. You can simply do something like:
Am I misunderstanding something or is this the same use case?
marco-m commentedon Oct 2, 2019
Hello, is this issue still valid ?