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, 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 tool pprof autoscaler_cpuprofile.out
>> File: autoscaler
>> Type: cpu
>> Time: Jun 29, 2020 at 11:21pm (CST)
>> Duration: 5.01mins, Total samples = 1.64mins (32.69%)
>>
>>
> Yes, the profile is sampling (not  a full capture but just a sample).
>
> V. 
>

-- 
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/7cab755a-419b-41fa-b6ba-eaf994d4e25fo%40googlegroups.com.

Reply via email to