golang如何使用工具找到股票行情泄漏的地方?

I find my process use high cpu when there was not business request

I use go-torch find most of the cpu was waste in runtime.timeproc

I think it must because time.NewTicker leak(not stop) in somewhere, or create ticker in a for loop

so how can i using any tool to find it

in fact, i had search it and ever ticker was follow a defer ticker.Stop()

I find the method to find out the leak Ticker

In heap profile, you can type:

go tool pprof http://xxx/debug/pprof/heap

tree time.NewTicker

can it will show where the ticker create, something like the following:

enter image description here