1. 程式人生 > >go調查內存泄漏

go調查內存泄漏

tool heap ren 內存 debug pprof url current bug

curl x.x.x.x/debug/pprof/heap > base.heap

過段時間

curl x.x.x.x/debug/pprof/heap > current.heap

go tool pprof -svg -base base.heap <binary> current.heap > diff.svg

go調查內存泄漏