<p dir="auto">I wonder if that can be achieved. I tried to to use cpu profiler using "net/http/pprof", but without binary it didn't manage to get anything useful for top or list commands. Unpacked apk and used .so as binary but it also didn't help.</p>
<p dir="auto">Host OS - Windows 8.1.<br>
Mobile OS - Android 4.4.</p>
<p dir="auto">Can be anything done about it? Or I am doing something severely wrong?</p>
<p dir="auto">I haven't tested this, but I suspect it is true: if you build a Go library using -buildmode=c-archive or c-shared, and call the Go library from a C program, and the Go library tries to use runtime/pprof.StartCPUProfile, I expect it won't work.  The problem is that Go will not have installed the SIGPROF signal handler.</p>