pprof consumes a large amount of memory
What version of pprof are you using?
the pprof of go version go1.23.7 linux/amd64
What operating system and processor architecture are you using?
Linux n37-109-068 5.4.143.bsk.8-amd64 #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8
What did you do?
exec the command, and open http://0.0.0.0:12345/ui/flamegraph in the browser
go tool pprof -http "0.0.0.0:12345" xxx.prof
the xxx.prof is a large file, 300MB.
What did you expect to see?
see the flame graph in the browser
What did you see instead?
The browser fails to load successfully, and the memory usage of the pprof process keeps increasing. It uses 123GB res and 80GB swap, but still wasn't successful.
300 MB compressed? What is uncompressed size? It seems that the profile is just too large.
I know it's too large. But it works fine in my m1 macbook, and it only uses 6GB mem, which is quite different from working on Linux.
Can you try patching #943 and collect a heap profile for the UI itself in the problematic scenario?