A Cost Centre is a single {-# SCC #-} annotation.
Constructors
NormalCCcc_flavour :: CCFlavourTwo cost centres may have the same name and module but different SrcSpans, so we need a way to distinguish them easily and give them different object-code labels. So every CostCentre has an associated flavour that indicates how it was generated, and flavours that allow multiple instances of the same name and module have a deterministic 0-based index.
cc_name :: CcNameName of the cost centre itself
cc_mod :: ModuleName of module defining this CC.
cc_loc :: SrcSpan
AllCafsCC
Instances5Eq, Data, Ord, Outputable, Binary
Eq CostCentreDefined in ghc-9.10.3 · GHC.Types.CostCentreData CostCentreDefined in ghc-9.10.3 · GHC.Types.CostCentreOrd CostCentreDefined in ghc-9.10.3 · GHC.Types.CostCentreOutputable CostCentreDefined in ghc-9.10.3 · GHC.Types.CostCentreBinary CostCentreDefined in ghc-9.10.3 · GHC.Types.CostCentre