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

Safe HaskellNone
LanguageHaskell2010

GHC.Prof

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 AggregateCostCentre Source #

Constructors

AggregateCostCentre 

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

aggregateCostCentresOrderBy Source #

Arguments

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

Sorting key function

-> Profile 
-> [AggregateCostCentre] 

costCentres :: Profile -> Maybe (Tree CostCentre) Source #

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

costCentresOrderBy Source #

Arguments

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

Sorting key function

-> Profile 
-> 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.

callSites Source #

Arguments

:: Text

Cost-centre name

-> Text

Module name

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

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

callSitesOrderBy Source #

Arguments

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

Sorting key function

-> Text

Cost-centre name

-> Text

Module name

-> Profile 
-> 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.