ghc-7.0.4: The GHC API

StgCmmProf

Synopsis

Documentation

profDynAlloc :: ClosureInfo -> CmmExpr -> FCode ()Source

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

profAlloc :: CmmExpr -> CmmExpr -> FCode ()Source

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.