[go-nuts] Re: run golang cpu profile for 5mins but only got 1.64mins (32.69%) samples

2020-07-09 Thread bobo qi
Thank you Volker. From the golang document, when getting cpu profile, it will stop the golang runtime 100 times per second, so I think for 5 mins, there should be 5*60*1000 samples. Am I wrong? 在 2020年7月1日星期三 UTC+8下午4:39:18,Volker Dobler写道: > > On Tuesday, 30 June 2020 18:16:54 UTC+2,

[go-nuts] Re: run golang cpu profile for 5mins but only got 1.64mins (32.69%) samples

2020-07-01 Thread Volker Dobler
On Tuesday, 30 June 2020 18:16:54 UTC+2, lqiy...@gmail.com wrote: > > $ go version > go version go1.13.10 > > In the container, the golang process used 100% of the CPU. When I took a > 5minutes CPU profile, the result shows that only 1.64mins (32.69%) samples > are returned. Is it normal? > > go