ghc-7.0.3: The GHC API

CgProf

Synopsis

- 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

mkCCostCentre :: CostCentre -> CmmLit

mkCCostCentreStack :: CostCentreStack -> CmmLit

dynProfHdr :: CmmExpr -> [CmmExpr]

profDynAlloc :: ClosureInfo -> CmmExpr -> Code

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

profAlloc :: CmmExpr -> CmmExpr -> Code

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]

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