Hi all,

I've tried running some of my Go code using CPU Profiling enabled as
described at

https://blog.golang.org/profiling-go-programs

and

https://golang.org/pkg/runtime/pprof/#StartCPUProfile

.. I'm on Funtoo Linux x86_64, and I ensured CONFIG_HIGH_RES_TIMERS=y;
however, it seems no matter what I always end up with a profile output
file of zero bytes.

I tried adding the HTTP endpoint for /debug/ to see profiling and
heap, allocs, and a few others do yield data.. it's just a few such as
pprof are always 0.

1. Is there another kernel config I might be missing for supporting this?
2. There's mention elsewhere of the SIGPROF signal, does my program
*need* to listen for this signal and receive one or more to actually
yield pprof data?

Thanks,
-Russ

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAN4yCu-gDmJOtWfqVrBokipccJGtvo3UduCcnGzmRx24oiJkpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to