On Sun, Jan 15, 2017 at 1:04 AM, Yucong Sun <
suny...@gmail.com> wrote:
>
> Sorry for replying late.
>
> 1: operating system is linux
> 2. golang 1.7
> 3. I'm statically linking Go with C++ code, so I guess that is
> -buildmode=c-archive.
With 1.7, if your program spends most of its time in C code that runs
in threads created by C code, then most of the profiling information
will be discarded. This is fixed in 1.8
(
https://golang.org/cl/30252). So my first suggestion is that you try
the 1.8 release candidate to see if it fixes the problem.
Ian