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

GHC.Debug.CostCentres

Synopsis

Documentation

findAllChildrenOfCC :: (CCPayload -> Bool) -> DebugM (Set CCSPtr) Source #

Find all cost centre stack parts that are transitively children of the cost centre with the given id.

findExactlyByCC :: (CCPayload -> Bool) -> DebugM (Set CCSPtr) Source #

Find all Cost Centre Stacks that reference precisely the cost centre with the given id.

Helper functions for working with IndexTable's

flattenIndexTable :: Maybe IndexTablePtr -> DebugM [CCSPayload] Source #

Flatten an optional index table pointer into a list of CCS Payloads.

Efficient representation of CCSPtr sets

newtype CCSSet Source #

Constructors

CCSSet IntSet