Johannes:
> i am looking for a simple patch to some Haskell runtime system
> so that it would display the heap *while* the program is running.
> like, opening an X window and mapping heap cell types to
> pixel colours.
Julian:
> I seem to remember that such a thing was present in at least an
> early version of nhc. Nhc people, do I remember right?
I don't remember such a thing, sorry. I did once write a heap profiler
for Gofer but got the implementation slightly wrong, so that the graph
showed a free/reachable/unreachable heap colouring. Being Gofer, there
were two garbage collectors to choose from (mark/sweep and two-space).
However, it wasn't a real-time display - it just produced the usual
heap-census which was post-processed into a PostScript graph.
If Johannes was thinking of doing his real-time heap display with nhc,
he needs to know that it uses a Jonkers compacting mark-flip GC.
Regards,
Malcolm