ghc-debug-client-0.2.0.0: Useful functions for writing heap analysis tools which use ghc-debug.
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Debug.Trace

Description

Functions to support the constant space traversal of a heap.

Synopsis

Documentation

traceFromM :: C m => TraceFunctions m -> [ClosurePtr] -> m DebugM () Source #

A generic heap traversal function which will use a small amount of memory linear in the heap size. Using this function with appropiate accumulation functions you should be able to traverse quite big heaps in not a huge amount of memory.