Hi,

The documentation of the profiling 
(https://blog.golang.org/profiling-go-programs) explains that: "Go program 
stops about 100 times per second".
However, in the code, I could see that the collector has a sleep of 100ms 
https://github.com/golang/go/blob/master/src/runtime/pprof/pprof.go#L779. 
Therefore, it collects data only 10 times per second?
Also, it does not stop the program since it is a separated 
goroutine 
https://github.com/golang/go/blob/master/src/runtime/pprof/pprof.go#L764.

Did I miss something here?

-- 
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/3d516ed5-f657-40a6-bbab-c3002a0ba65b%40googlegroups.com.

Reply via email to