make a request (like "/debug/pprof/profile"), it starts profiling for
30 seconds, then shuts off.
I can add information about this to the documentation, but the point
of my original documentation addition was just to help people get the
example "go tool pprof..." commands working.
Patrick
On Wed, Aug 29, 2012 at 2:03 PM, wrote:
Sorry for jumping in the middle of the thread but given that you are fixing
the documentation I might as well express my doubts here.
If I import _ "net/http/pprof" in my code and do not run the http server
will the application waste clock cycles?
Can the profiler (http server?) be turned on and off during execution (with
a flag or something) and use no cpu when turned off?
Could you please document all this?
Sorry for the intrusion.
Giacomo
Sorry for jumping in the middle of the thread but given that you are fixing
the documentation I might as well express my doubts here.
If I import _ "net/http/pprof" in my code and do not run the http server
will the application waste clock cycles?
Can the profiler (http server?) be turned on and off during execution (with
a flag or something) and use no cpu when turned off?
Could you please document all this?
Sorry for the intrusion.
Giacomo
On Wednesday, 29 August 2012 17:57:43 UTC+2, minux wrote:
LGTM, leave for adg.
http://codereview.appspot.com/6483049/
LGTM, leave for adg.
http://codereview.appspot.com/6483049/
--
Founder | www.stathat.com | twitter.com/stat_hat