Late cost center insertion configuration.
Specifies whether cost centers are added to overloaded function call sites and/or top-level bindings, and which top-level bindings they are added to. Also holds the cost center insertion environment.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Moduleghc-10.0.0.20260917GHC2024
Types related to late cost center insertion
Late cost center insertion configuration.
Specifies whether cost centers are added to overloaded function call sites and/or top-level bindings, and which top-level bindings they are added to. Also holds the cost center insertion environment.
The types of top-level bindings we support adding cost centers to.
Late cost centre insertion environment
LateCCEnvlateCCEnv_module :: !ModuleCurrent module
lateCCEnv_file :: Maybe FastStringCurrent file, if we have one
lateCCEnv_countEntries :: !BoolWhether the inserted cost centers should count entries
lateCCEnv_collectCCs :: !BoolWhether to collect the cost centres we insert. See Note [Collecting late cost centres]
Late cost centre insertion state, indexed by some extra state type that an insertion method may require.
LateCCStatelateCCState_ccs :: !Set CostCentreCost centres that have been inserted
lateCCState_ccState :: !CostCentreStatePer-module state tracking for cost centre indices
lateCCState_extra :: !sThe empty late cost centre insertion state
Late cost centre insertion monad