Add HeapView functionality (ec22f7d)

Joachim Breitner mail at
Sun May 20 22:03:47 UTC 2018


Am Sonntag, den 20.05.2018, 15:43 +0000 schrieb git at
> commit ec22f7ddc81b40a9dbcf140e5cf44730cb776d00
> Author: Patrick Dougherty <patrick.doc at>
> Date:   Wed May 16 16:50:13 2018 -0400
>     Add HeapView functionality
>     This pulls parts of Joachim Breitner's ghc-heap-view library inside GHC.
>     The bits added are the C hooks into the RTS and a basic Haskell wrapper
>     to these C hooks. The main reason for these to be added to GHC proper
>     is that the code needs to be kept in sync with the closure types
>     defined by the RTS. It is expected that the version of HeapView shipped
>     with GHC will always work with that version of GHC and that extra
>     functionality can be layered on top with a library like ghc-heap-view
>     distributed via Hackage.

whoohoo, this is great! I did not not expect that the horrifying (but
maybe not horrible) hack that I wrote so many years ago becomes an
official feature :-)

I’ll be curious in what ways our community will use (or abuse) this

Patrick, you mention that a library like ghc-heap-view will still be
required. Are you interested in updating it to use the new interfaces,
or even take it over completely?

Compatibility with ghc-vis ( is
probably the most important goal here. I’m CC’ing the author of ghc-
vis, Dennis. Or maybe ghc-vis should use the GHC-provided wrappers

Dennis, are you still invested in maintaining ghc-vis?


Joachim Breitner
  mail at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the ghc-devs mailing list