On Tue, Feb 7, 2017 at 11:54 AM, Ian Lance Taylor <i...@golang.org> wrote
> > > > Ok. Any idea was runtime._ExternalCode means? > > It means that a profiling signal was received while executing code > that was not written in Go. It should only happen in a program that > uses cgo. Suprisingly, that does not seem to be the case.. After figuring out how to compile without cgo (c.f. https://github.com/golang/go/issues/18981), and how to reliably create profiles, my profile still shows 50% of the programs time being taken up by this mystery bucket of _ExternalCode: (pprof) top10 -cum 134.12s of 266.39s total (50.35%) Dropped 40 nodes (cum <= 1.33s) Showing top 10 nodes out of 46 (cum >= 89.93s) flat flat% sum% cum cum% 0 0% 0% 143.12s 53.73% runtime.goexit 2.97s 1.11% 1.11% 143.09s 53.71% github.com/glycerine/vhaline/vhaline.(*srvReader).start.func1 123.26s 46.27% 47.39% 123.26s 46.27% runtime._ExternalCode 0 0% 47.39% 123.26s 46.27% runtime._System 0.59s 0.22% 47.61% 98.03s 36.80% github.com/glycerine/tmframe2.(*FrameReader).NextFrame 0.75s 0.28% 47.89% 97.44s 36.58% github.com/glycerine/tmframe2.(*FrameReader).PeekNextFrameBytes 1.97s 0.74% 48.63% 96.69s 36.30% bufio.(*Reader).Peek 1.05s 0.39% 49.02% 94.72s 35.56% bufio.(*Reader).fill 1.36s 0.51% 49.53% 93.45s 35.08% net.(*conn).Read 2.17s 0.81% 50.35% 89.93s 33.76% net.(*netFD).Read (pprof) Attaching the svg picture from pprof. Also here: https://drive.google.com/file/d/0BxpncsKbxeGWLVFHX3B0OGg0OEU/view?usp=sharing -- 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.