HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

Moduleghc-10.0.0.20260917GHC2024

GHC.StgToCmm.Prof

  • 21 values
valueprofDynAlloc :: SMRep -> CmmExpr -> FCode ()
#

Record the allocation of a closure. The CmmExpr is the cost centre stack to which to attribute the allocation.

valueprofAlloc :: CmmExpr -> CmmExpr -> FCode ()
#

Record the allocation of a closure (size is given by a CmmExpr) The size must be in words, because the allocation counter in a CCS counts in words.

Called when a closure is entered, marks the closure as having been "used". The closure is not an "inherently used" one. The closure is not IND because that is not considered for LDV profiling.

valueprofHeaderCreate :: CmmExpr -> FCode ()
#

Initialise the profiling word of a new dynamic closure * When LDV profiling is enabled (era > 0) - Initialise to the LDV word * When eras profiling is enabled (user_era > 0) - Initialise to current user_era