pkg / profile

Simple profiling for Go
BSD 2-Clause "Simplified" License
1.99k stars 124 forks source link

Add NoProfile #31

Open josharian opened 7 years ago

josharian commented 7 years ago

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.

gbbr commented 7 years ago

This sounds good to me considering that:

gbbr commented 7 years ago

Some thoughts I have on this are:

// ...

if p != nil { p.Stop() }


Am I misunderstanding something or is this the same use case?
marco-m commented 4 years ago

Hello, is this issue still valid ?