ghc-time-alloc-prof-0.0.0: Library for parsing GHC time and allocation profiling reports

Safe HaskellNone

GHC.RTS.TimeAllocProfile.CostCentreTree

Synopsis

Documentation

profileCostCentres :: TimeAllocProfile -> Maybe (Tree CostCentre)Source

Build a tree of cost-centres from a profiling report.

profileCostCentresOrderBySource

Arguments

:: Ord a 
=> (CostCentre -> a)

Sorting key function

-> TimeAllocProfile 
-> Maybe (Tree CostCentre) 

Build a tree of cost-centres from a profiling report. Nodes are sorted by the given key function for each level of the tree.

profileCallSitesSource

Arguments

:: Text

Cost-centre name

-> Text

Module name

-> TimeAllocProfile 
-> Maybe (Callee, Seq CallSite) 

Build a list of call-sites (caller functions) for a specified cost-centre name and module name.

profileCallSitesOrderBySource

Arguments

:: Ord a 
=> (CostCentre -> a)

Sorting key function

-> Text

Cost-centre name

-> Text

Module name

-> TimeAllocProfile 
-> Maybe (Callee, Seq CallSite) 

Build a list of call-sites (caller function) for a specified cost-centre name and module name. Nodes are sorted by the given key function.

buildCostCentresOrderBySource

Arguments

:: Ord a 
=> (CostCentre -> a)

Sorting key function

-> CostCentreTree 
-> Maybe (Tree CostCentre) 

buildCallSitesOrderBySource

Arguments

:: Ord a 
=> (CostCentre -> a)

Sorting key function

-> Text

Cost-centre name

-> Text

Module name

-> CostCentreTree 
-> Maybe (Callee, Seq CallSite)