On Tue, Feb 7, 2017 at 10:58 AM, Kale B <[email protected]> wrote: > Go to http://localhost:6067/debug/pprof/profile with a browser/curl/etc, > it should display a more useful error message. >
Thanks Kale. I got the much more useful: Could not enable CPU profiling: cpu profiling already in use So the web didn't work, but it did seem to force the internal profiling to actually output something to the cpu-profile file that I set up. So I got the following profile to show up, on the 100% cpu pegged process: somehow the svg and the top10 don't exactly tell the same story... https://drive.google.com/file/d/0BxpncsKbxeGWSDlabE1OVU1wTjQ/view?usp=sharing [jaten@biggie 1.7.4]$ go tool pprof vhaline.174 cpu-profile.85790.cp Entering interactive mode (type "help" for commands) (pprof) top10 294.19s of 785.18s total (37.47%) Dropped 106 nodes (cum <= 3.93s) Showing top 10 nodes out of 69 (cum >= 382.14s) flat flat% sum% cum cum% 42.63s 5.43% 5.43% 54.84s 6.98% runtime.additab 35.12s 4.47% 9.90% 112.79s 14.36% os.(*File).Chdir 34.45s 4.39% 14.29% 199.63s 25.42% reflect.Value.Method 33.11s 4.22% 18.51% 54.20s 6.90% runtime.gfput 30.16s 3.84% 22.35% 52.32s 6.66% runtime.sigprof 25.49s 3.25% 25.59% 25.49s 3.25% github.com/glycerine/zebrapack/msgp.(*NilBitsStack).ReadFloat64Bytes 24.51s 3.12% 28.72% 96.87s 12.34% runtime.newdefer.func1 23.11s 2.94% 31.66% 23.11s 2.94% runtime.dopanic_m 23.10s 2.94% 34.60% 40.13s 5.11% runtime.netpoll 22.51s 2.87% 37.47% 382.14s 48.67% crypto/tls.(*certificateRequestMsg).unmarshal (pprof) top10 -cum 2.22mins of 13.09mins total (16.97%) Dropped 106 nodes (cum <= 0.07mins) Showing top 10 nodes out of 69 (cum >= 3.11mins) flat flat% sum% cum cum% 0 0% 0% 12.89mins 98.47% type..hash.runtime.traceStackTable 0.12mins 0.96% 0.96% 6.85mins 52.33% os.(*File).ReadAt 0.35mins 2.71% 3.66% 6.72mins 51.38% encoding/gob.init 0.38mins 2.87% 6.53% 6.37mins 48.67% crypto/tls.(*certificateRequestMsg).unmarshal 0.18mins 1.39% 7.92% 5.99mins 45.80% crypto/tls.(*certificateRequestMsg).marshal 0.14mins 1.04% 8.96% 5.57mins 42.60% fmt.Fprintln 0.19mins 1.45% 10.41% 4.15mins 31.72% os.(*File).Read 0.24mins 1.85% 12.26% 3.61mins 27.61% fmt.(*pp).badVerb 0.57mins 4.39% 16.64% 3.33mins 25.42% reflect.Value.Method 0.04mins 0.32% 16.97% 3.11mins 23.79% reflect.Value.SetComplex (pprof) svg Generating report in profile001.svg (pprof) -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
