net/http/pprof is your best option

If you can't make that fly, then you can use my profile package; just keep 
a reference to the value returned from profile.Start() and call its Stop 
method to write out the profile

On Wednesday, 8 February 2017 09:03:30 UTC+11, Jason E. Aten wrote:
>
> addendum: the real program I'm trying to profile never exits on its own. 
> It acts as a server. So I'd like to be able to profile it  without shutting 
> it down (ideally), or by sending it a signal. I tried the web interface 
> instead of the file, but I always get "empty profile" back.
>

-- 
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.

Reply via email to