ghc-9.6.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.StgToJS.Profiling

Contents

- Predicates
- helpers

Synopsis

- initCostCentres :: CollectedCCs -> G ()
- emitCostCentreDecl :: CostCentre -> G ()
- emitCostCentreStackDecl :: CostCentreStack -> G ()
- enterCostCentreFun :: CostCentreStack -> JStat
- enterCostCentreThunk :: JStat
- setCC :: CostCentre -> Bool -> Bool -> G JStat
- pushRestoreCCS :: JStat
- jCurrentCCS :: JExpr
- jCafCCS :: JExpr
- jSystemCCS :: JExpr
- costCentreLbl :: CostCentre -> G Ident
- costCentreStackLbl :: CostCentreStack -> G (Maybe Ident)
- singletonCCSLbl :: CostCentre -> G Ident
- ccsVarJ :: CostCentreStack -> G (Maybe JExpr)
- profiling :: G Bool
- ifProfiling :: Monoid m => m -> G m
- ifProfilingM :: Monoid m => G m -> G m
- profStat :: StgToJSConfig -> JStat -> JStat

# Documentation

initCostCentres :: CollectedCCs -> G () Source #

emitCostCentreDecl :: CostCentre -> G () Source #

emitCostCentreStackDecl :: CostCentreStack -> G () Source #

enterCostCentreFun :: CostCentreStack -> JStat Source #

enterCostCentreThunk :: JStat Source #

setCC :: CostCentre -> Bool -> Bool -> G JStat Source #

pushRestoreCCS :: JStat Source #

jCurrentCCS :: JExpr Source #

jCafCCS :: JExpr Source #

jSystemCCS :: JExpr Source #

costCentreLbl :: CostCentre -> G Ident Source #

costCentreStackLbl :: CostCentreStack -> G (Maybe Ident) Source #

singletonCCSLbl :: CostCentre -> G Ident Source #

ccsVarJ :: CostCentreStack -> G (Maybe JExpr) Source #

# Predicates

profiling :: G Bool Source #

ifProfiling :: Monoid m => m -> G m Source #

ifProfilingM :: Monoid m => G m -> G m Source #

# helpers

profStat :: StgToJSConfig -> JStat -> JStat Source #

If profiling is enabled, then use input JStat, else ignore