Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- aggregatedCostCentres :: Profile -> [AggregatedCostCentre]
- aggregatedCostCentresOrderBy :: Ord a => (AggregatedCostCentre -> a) -> Profile -> [AggregatedCostCentre]
- costCentres :: Profile -> Maybe (Tree CostCentre)
- costCentresOrderBy :: Ord a => (CostCentre -> a) -> Profile -> Maybe (Tree CostCentre)
- aggregateCallSites :: Text -> Text -> Profile -> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre])
- aggregateCallSitesOrderBy :: Ord a => (CallSite AggregatedCostCentre -> a) -> Text -> Text -> Profile -> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre])
- callSites :: Text -> Text -> Profile -> Maybe (AggregatedCostCentre, [CallSite CostCentre])
- callSitesOrderBy :: Ord a => (CallSite CostCentre -> a) -> Text -> Text -> Profile -> Maybe (AggregatedCostCentre, [CallSite CostCentre])
- aggregateModules :: Profile -> [AggregateModule]
- aggregateModulesOrderBy :: Ord a => (AggregateModule -> a) -> Profile -> [AggregateModule]
- buildAggregatedCostCentresOrderBy :: Ord a => (AggregatedCostCentre -> a) -> CostCentreTree -> [AggregatedCostCentre]
- buildCostCentresOrderBy :: Ord a => (CostCentre -> a) -> CostCentreTree -> Maybe (Tree CostCentre)
- buildCallSitesOrderBy :: Ord a => (CallSite CostCentre -> a) -> Text -> Text -> CostCentreTree -> Maybe (AggregatedCostCentre, [CallSite CostCentre])
- buildAggregateCallSitesOrderBy :: Ord a => (CallSite AggregatedCostCentre -> a) -> Text -> Text -> CostCentreTree -> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre])
Cost center breakdown
Aggregate cost centres
aggregatedCostCentres :: Profile -> [AggregatedCostCentre] Source #
Build a list of cost-centres from a profiling report ordered by the time spent and the amount of allocation.
aggregatedCostCentresOrderBy Source #
:: Ord a | |
=> (AggregatedCostCentre -> a) | Sorting key function |
-> Profile | |
-> [AggregatedCostCentre] |
Build a list of cost-centres from a profling report ordered by the given key.
Cost centre trees
costCentres :: Profile -> Maybe (Tree CostCentre) Source #
Build a tree of cost-centres from a profiling report.
:: 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.
Call site breakdown
Aggregate call sites
:: Text | Cost centre name |
-> Text | Module name |
-> Profile | |
-> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre]) |
Build a list of call sites (caller functions of a cost centre) aggregated by their cost centre names and module names.
aggregateCallSitesOrderBy Source #
:: Ord a | |
=> (CallSite AggregatedCostCentre -> a) | Sorting key function |
-> Text | Cost centre name |
-> Text | Module name |
-> Profile | |
-> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre]) |
Build a list of call sites (caller functions of a cost centre) aggregated by their cost centre names and module names. Call sites are sorted by the given key function.
Call sites
:: Text | Cost-centre name |
-> Text | Module name |
-> Profile | |
-> Maybe (AggregatedCostCentre, [CallSite CostCentre]) |
Build a list of call-sites (caller functions) for a specified cost-centre name and module name.
:: Ord a | |
=> (CallSite CostCentre -> a) | Sorting key function |
-> Text | Cost-centre name |
-> Text | Module name |
-> Profile | |
-> Maybe (AggregatedCostCentre, [CallSite CostCentre]) |
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.
Module breakdown
aggregateModules :: Profile -> [AggregateModule] Source #
Break down aggregate cost centres by module sorted by total time and allocation.
aggregateModulesOrderBy Source #
:: Ord a | |
=> (AggregateModule -> a) | Sorting key function |
-> Profile | |
-> [AggregateModule] |
Break odwn aggregate cost centres by module.
Low level functions
buildAggregatedCostCentresOrderBy :: Ord a => (AggregatedCostCentre -> a) -> CostCentreTree -> [AggregatedCostCentre] Source #
buildCostCentresOrderBy Source #
:: Ord a | |
=> (CostCentre -> a) | Sorting key function |
-> CostCentreTree | |
-> Maybe (Tree CostCentre) |
buildCallSitesOrderBy Source #
:: Ord a | |
=> (CallSite CostCentre -> a) | Sorting key function |
-> Text | Cost-centre name |
-> Text | Module name |
-> CostCentreTree | |
-> Maybe (AggregatedCostCentre, [CallSite CostCentre]) |
buildAggregateCallSitesOrderBy Source #
:: Ord a | |
=> (CallSite AggregatedCostCentre -> a) | Sorting key function |
-> Text | Cost centre name |
-> Text | Module name |
-> CostCentreTree | |
-> Maybe (AggregatedCostCentre, [CallSite AggregatedCostCentre]) |