Safe Haskell | None |
---|
Utilities to debug GHC.HeapView.
Documentation
:: Bool | Whether to check for cycles |
-> Bool | Whethter to GC in every step |
-> Box | The closure to investigate |
-> IO () |
This functions walks the heap referenced by the argument, printing the "path", i.e. the pointer indices from the initial to the current closure and the closure itself. When the runtime crashes, the problem is likely related to one of the earlier steps.
walkPrefix :: [Int] -> a -> IO BoxSource
isCharCons :: GenClosure Box -> IO BoolSource
isCons :: GenClosure b -> Maybe (b, b)Source
isChar :: GenClosure b -> Maybe CharSource