- mkCCostCentre :: CostCentre -> CmmLit
- mkCCostCentreStack :: CostCentreStack -> CmmLit
- dynProfHdr :: CmmExpr -> [CmmExpr]
- profDynAlloc :: ClosureInfo -> CmmExpr -> Code
- profAlloc :: CmmExpr -> CmmExpr -> Code
- staticProfHdr :: CostCentreStack -> [CmmLit]
- initUpdFrameProf :: CmmExpr -> Code
- enterCostCentre :: ClosureInfo -> CostCentreStack -> StgExpr -> Code
- enterCostCentrePAP :: CmmExpr -> Code
- enterCostCentreThunk :: CmmExpr -> Code
- chooseDynCostCentres :: CostCentreStack -> [Id] -> StgExpr -> FCode (CmmExpr, CmmExpr)
- costCentreFrom :: CmmExpr -> CmmExpr
- curCCS :: CmmExpr
- curCCSAddr :: CmmExpr
- emitCostCentreDecl :: CostCentre -> Code
- emitCostCentreStackDecl :: CostCentreStack -> Code
- emitRegisterCC :: CostCentre -> Code
- emitRegisterCCS :: CostCentreStack -> Code
- emitSetCCC :: CostCentre -> Code
- emitCCS :: CostCentreStack -> FCode CmmExpr
- ldvEnter :: CmmExpr -> Code
- ldvEnterClosure :: ClosureInfo -> Code
- ldvRecordCreate :: CmmExpr -> Code
Documentation
dynProfHdr :: CmmExpr -> [CmmExpr]Source
profDynAlloc :: ClosureInfo -> CmmExpr -> CodeSource
Record the allocation of a closure. The CmmExpr is the cost centre stack to which to attribute the allocation.
profAlloc :: CmmExpr -> CmmExpr -> CodeSource
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 :: CostCentreStack -> [CmmLit]Source
enterCostCentre :: ClosureInfo -> CostCentreStack -> StgExpr -> CodeSource
chooseDynCostCentres :: CostCentreStack -> [Id] -> StgExpr -> FCode (CmmExpr, CmmExpr)Source
emitSetCCC :: CostCentre -> CodeSource
ldvRecordCreate :: CmmExpr -> CodeSource