ghc-7.6.3: The GHC API

Safe HaskellNone

CgProf

Synopsis

Documentation

profDynAlloc :: ClosureInfo -> CmmExpr -> CodeSource

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

profAlloc :: CmmExpr -> CmmExpr -> CodeSource

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.

This API is used by the CCS_ALLOC() macro in .cmm code.