How to get a heap visualization

Yitzchak Gale gale at sefer.org
Thu Aug 31 15:09:57 UTC 2017


I wrote:
>> I need a simple heap visualization for debugging purposes...
>> Vacuum... has some long-outstanding PRs against it...
>> that were never applied...
>> Getting ghc-vis to compile looks hopeless...
>> ghc-heap-view... is there a quick and simple
>> visualizer for its output, without ghc-vis?

Edward Z. Yang wrote:
> Why not the plain old heap profiler?

That didn't prove helpful in this case. We need to dive down
into the structure of certain large and complex objects to find
out what is happening.

My plan is to see if I can apply the vacuum PR manually locally
and see if I can get it working reasonably soon. If not, I guess
I'll try running ghc-heap-view without visualization and see if I
can make sense of the textual output.

Actually, the profiling was done by someone else, not me.
Now that you mention it, maybe I'll first give that another try
myself and see if I can get any farther.

Still, vacuum-style heap visualization is a really nice tool.
It's a shame that it has fallen into such a state of disrepair.

Thanks,
Yitz


More information about the Glasgow-haskell-users mailing list