Search code examples
debugginggoprofilingpprof

How to analyze this Golang cpu pprof snapshot?


This problem occurs about 10 minutes after the program starts. CPU costs 300%. What's the problem? stackoverflow doesn't support .svg image. Please download the .svg file uploaded to github.

https://github.com/.../raw/master/pprof001.svg


Solution

  • You are jammed in runtime (see https://godoc.org/runtime) presumably because of poor choices in the com/smdduck/xsys/xcron/NewRateLimiter

    But no idea what to recommend, as there is no source code

    Voting to close as off-topic due to a lack of code to look at