profile.Start() installs a ^C handler to try to make sure profiles are properly flushed to disk before your process goes to the bit bucket in the sky.
> On 19 Sep 2018, at 12:23, andrey mirtchovski <mirtchov...@gmail.com> wrote: > > you're talking about https://github.com/pkg/profile, presumably. while > i did find that fairly quickly and it appears to be very useful, it > wasn't immediately obvious that it would solve my particular issue. > unfortunately we're also averse to importing third-party packages > without additional vetting. i ended up using the http/pprof package > from the stdlib which gave me what i wanted. >> On Tue, Sep 18, 2018 at 7:55 PM Dave Cheney <d...@cheney.net> wrote: >> >> pkg /profile will do the paperwork for you so ^C works when profiling. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.