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

Safe HaskellSafe
LanguageHaskell2010

GHC.RTS.TimeAllocProfile

Contents

Synopsis

Documentation

data TotalTime Source #

total time in the profiling reports

Constructors

TotalTime 

Fields

newtype TotalAlloc Source #

total alloc in the profiling reports

Constructors

TotalAlloc 

Fields

data BriefCostCentre Source #

Constructors

BriefCostCentre 

Fields

data CostCentre Source #

Cost-centre node

Constructors

CostCentre 

Fields

data Callee Source #

Constructors

Callee 

Fields

Instances

data CallSite Source #

Constructors

CallSite 

Fields

Parser

Cost-centre tree

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

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

profileCostCentresOrderBy Source #

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.

profileCallSites Source #

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.

profileCallSitesOrderBy Source #

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.