HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

GHC.StgToCmm.Prof

  • 21 values
  • Packageghc-9.10.3
  • Exports21
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceProf.hs
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