StgCmmProf

ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

StgCmmProf

Synopsis

- initCostCentres :: CollectedCCs -> FCode ()
- ccType :: DynFlags -> CmmType
- ccsType :: DynFlags -> CmmType
- mkCCostCentre :: CostCentre -> CmmLit
- mkCCostCentreStack :: CostCentreStack -> CmmLit
- dynProfHdr :: DynFlags -> CmmExpr -> [CmmExpr]
- profDynAlloc :: SMRep -> CmmExpr -> FCode ()
- profAlloc :: CmmExpr -> CmmExpr -> FCode ()
- staticProfHdr :: DynFlags -> CostCentreStack -> [CmmLit]
- initUpdFrameProf :: CmmExpr -> FCode ()
- enterCostCentreThunk :: CmmExpr -> FCode ()
- enterCostCentreFun :: CostCentreStack -> CmmExpr -> FCode ()
- costCentreFrom :: DynFlags -> CmmExpr -> CmmExpr
- curCCS :: CmmExpr
- storeCurCCS :: CmmExpr -> CmmAGraph
- emitSetCCC :: CostCentre -> Bool -> Bool -> FCode ()
- saveCurrentCostCentre :: FCode (Maybe LocalReg)
- restoreCurrentCostCentre :: Maybe LocalReg -> FCode ()
- ldvEnter :: CmmExpr -> FCode ()
- ldvEnterClosure :: ClosureInfo -> CmmReg -> FCode ()
- ldvRecordCreate :: CmmExpr -> FCode ()

# Documentation

initCostCentres :: CollectedCCs -> FCode () Source

ccType :: DynFlags -> CmmType Source

ccsType :: DynFlags -> CmmType Source

mkCCostCentre :: CostCentre -> CmmLit Source

mkCCostCentreStack :: CostCentreStack -> CmmLit Source

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

enterCostCentreThunk :: CmmExpr -> FCode () Source

enterCostCentreFun :: CostCentreStack -> CmmExpr -> FCode () Source

costCentreFrom :: DynFlags -> CmmExpr -> CmmExpr Source

curCCS :: CmmExpr Source

storeCurCCS :: CmmExpr -> CmmAGraph Source

emitSetCCC :: CostCentre -> Bool -> Bool -> FCode () Source

saveCurrentCostCentre :: FCode (Maybe LocalReg) Source

restoreCurrentCostCentre :: Maybe LocalReg -> FCode () Source

ldvEnter :: CmmExpr -> FCode () Source

ldvEnterClosure :: ClosureInfo -> CmmReg -> FCode () Source

ldvRecordCreate :: CmmExpr -> FCode () Source