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 CostCentreSource
A Cost Centre is a single {-# SCC #-}
annotation.
NormalCC | |
| |
AllCafsCC | |
type CcName = FastStringSource
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 -> CostCentreSource
mkAllCafsCC :: Module -> SrcSpan -> CostCentreSource
isCafCC :: CostCentre -> BoolSource
isSccCountCC :: CostCentre -> BoolSource
Is this a cost-centre which records scc counts
sccAbleCC :: CostCentre -> BoolSource
Is this a cost-centre which can be sccd ?
ccFromThisModule :: CostCentre -> Module -> BoolSource
cmpCostCentre :: CostCentre -> CostCentre -> OrderingSource