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 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11
Moduleghc-9.14.1GHC2021
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