Safe Haskell | None |
---|---|
Language | Haskell98 |
- data CostCentre
- type CcName = FastString
- data IsCafCC
- data CostCentreStack
- type CollectedCCs = ([CostCentre], [CostCentre], [CostCentreStack])
- noCCS :: CostCentreStack
- currentCCS :: CostCentreStack
- dontCareCCS :: CostCentreStack
- noCCSAttached :: CostCentreStack -> Bool
- isCurrentCCS :: CostCentreStack -> Bool
- maybeSingletonCCS :: CostCentreStack -> Maybe CostCentre
- mkUserCC :: FastString -> Module -> SrcSpan -> Unique -> CostCentre
- mkAutoCC :: Id -> Module -> IsCafCC -> CostCentre
- mkAllCafsCC :: Module -> SrcSpan -> CostCentre
- mkSingletonCCS :: CostCentre -> CostCentreStack
- isCafCCS :: CostCentreStack -> Bool
- isCafCC :: CostCentre -> Bool
- isSccCountCC :: CostCentre -> Bool
- sccAbleCC :: CostCentre -> Bool
- ccFromThisModule :: CostCentre -> Module -> Bool
- pprCostCentreCore :: CostCentre -> SDoc
- costCentreUserName :: CostCentre -> String
- costCentreUserNameFS :: CostCentre -> FastString
- costCentreSrcSpan :: CostCentre -> SrcSpan
- cmpCostCentre :: CostCentre -> CostCentre -> Ordering
Documentation
data CostCentre Source
NormalCC | |
| |
AllCafsCC | |
type CcName = FastString Source
data CostCentreStack Source
A Cost Centre Stack is something that can be attached to a closure. This is either:
- the current cost centre stack (CCCS)
- a pre-defined cost centre stack (there are several pre-defined CCSs, see below).
type CollectedCCs = ([CostCentre], [CostCentre], [CostCentreStack]) Source
mkUserCC :: FastString -> Module -> SrcSpan -> Unique -> CostCentre Source
mkAllCafsCC :: Module -> SrcSpan -> CostCentre Source
isCafCCS :: CostCentreStack -> Bool Source
isCafCC :: CostCentre -> Bool Source
isSccCountCC :: CostCentre -> Bool Source
Is this a cost-centre which records scc counts
sccAbleCC :: CostCentre -> Bool Source
Is this a cost-centre which can be sccd ?
ccFromThisModule :: CostCentre -> Module -> Bool Source
cmpCostCentre :: CostCentre -> CostCentre -> Ordering Source