GHC.Exts.Stack

ghc-heap-9.14.0.20251028: Functions for walking GHC's heap

Safe Haskell | None
Language | Haskell2010

GHC.Exts.Stack

Contents

- Stack inspection

Synopsis

- decodeStack :: StackSnapshot -> IO StgStackClosure
- stackFrameSize :: StackFrame -> Int

# Stack inspection

decodeStack :: StackSnapshot -> IO StgStackClosure Source #

Decode `StackSnapshot` to a `StgStackClosure`

The return value is the representation of the `StgStack` itself.

See Note [Decoding the stack].

stackFrameSize :: StackFrame -> Int Source #

Get the size of the `StackFrame` in words.

Includes header and payload. Does not follow pointers.