ghc-7.8.3: The GHC API

Safe HaskellNone
LanguageHaskell98

StgCmmProf

Synopsis

Documentation

dynProfHdr :: DynFlags -> CmmExpr -> [CmmExpr] Source

Profiling header words in a dynamic closure

profDynAlloc :: SMRep -> CmmExpr -> FCode () Source

Record the allocation of a closure. The CmmExpr is the cost centre stack to which to attribute the allocation.

profAlloc :: CmmExpr -> CmmExpr -> FCode () Source

Record the allocation of a closure (size is given by a CmmExpr) The size must be in words, because the allocation counter in a CCS counts in words.

staticProfHdr :: DynFlags -> CostCentreStack -> [CmmLit] Source

The profiling header words in a static closure

initUpdFrameProf :: CmmExpr -> FCode () Source

Initialise the profiling field of an update frame