Re: [go-nuts] pprof where is my time going

2016-07-28 Thread ajay aggarwal
Apparently its very easy to collect execution tracer profile runtime.trace.Start (io.Writer) time.Sleep(N seconds) runtime.trace.Stop() And to analyze/look at the collected profile go tool trace /path/to/your/app/executable On Monday, July 25, 2016 at 5:47:19 PM UTC-4, ajay aggarwal wrote:

Re: [go-nuts] pprof where is my time going

2016-07-25 Thread ajay aggarwal
Thanks Ian. But Its not clear how to get execution trace from that document (https://golang.org/s/go15trace). When I list profiles for my application, I get following list block,goroutine,heap,threadcreate And when I try to curl to http://my-app/debug/pprof/trace?seconds=30"; for my applicati

Re: [go-nuts] pprof where is my time going

2016-07-18 Thread Ian Lance Taylor
On Mon, Jul 18, 2016 at 10:28 AM, ajay aggarwal wrote: > Thanks for the explanation on runtime.mcall and runtime.schedule. Is it true > that if your application gets blocked a lot (say on I/O) then CPU profile > will not help you to figure out where you are getting blocked the most? The > blocked

Re: [go-nuts] pprof where is my time going

2016-07-18 Thread ajay aggarwal
Thanks for the explanation on runtime.mcall and runtime.schedule. Is it true that if your application gets blocked a lot (say on I/O) then CPU profile will not help you to figure out where you are getting blocked the most? The blocked goroutines will not show up in the CPU profile samples.. On

Re: [go-nuts] pprof where is my time going

2016-07-17 Thread Ian Lance Taylor
On Sun, Jul 17, 2016 at 11:00 AM, ajay aggarwal wrote: > > I am trying to analyze why I am getting low throughput for my app. Below is > the 30 second CPU profile output. I would expect more time spent in net/http > serve. Not sure if runtime.mcall and runtime.schedule taking almost 1/4th of > the

[go-nuts] pprof where is my time going

2016-07-17 Thread ajay aggarwal
Hello, I am trying to analyze why I am getting low throughput for my app. Below is the 30 second CPU profile output. I would expect more time spent in net/http serve. Not sure if runtime.mcall and runtime.schedule taking almost 1/4th of the time is concerning. When I did a "web mcall" it didn't