go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.38k stars 2.13k forks source link

Proposal: support outputting Flame Graph for heap object references to troubleshoot memory leaks #3711

Closed jayantxie closed 2 months ago

jayantxie commented 2 months ago

As the title suggests, the profile output from go pprof only records the function stack where objects are created, but it doesn't provide information about object reference relationships. I would like to generate a flame graph that can quickly locate the GC roots and reference chains for a heap object that is causing significant memory leaks. This would help in identifying the memory leak issue more effectively.

aarzilli commented 2 months ago

Duplicate of #2655

aarzilli commented 2 months ago

You should try viewcore, the problem is that it's maintainance is spotty.