I am trying to use pprof to verify memory leaks.
Can any explain how to read the heap profile that you find at:
http://localhost:6060/debug/pprof/heap?debug=1
Also, is it normal that by typing the web
command after starting go tool pprof http://localhost:6060/debug/pprof/heap
it produces an empty .svg file?
Many Thanks
I may help with the second question. You must provide the name of the binary to your command:
go tool pprof YOUR_COMPILED_BINARY http://localhost:6060/debug/pprof/heap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With