| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
GHC.RTS.TimeAllocProfile.CostCentreTree
- profileCostCentres :: TimeAllocProfile -> Maybe (Tree CostCentre)
- profileCostCentresOrderBy :: Ord a => (CostCentre -> a) -> TimeAllocProfile -> Maybe (Tree CostCentre)
- profileCallSites :: Text -> Text -> TimeAllocProfile -> Maybe (Callee, Seq CallSite)
- profileCallSitesOrderBy :: Ord a => (CostCentre -> a) -> Text -> Text -> TimeAllocProfile -> Maybe (Callee, Seq CallSite)
- buildCostCentresOrderBy :: Ord a => (CostCentre -> a) -> CostCentreTree -> Maybe (Tree CostCentre)
- buildCallSitesOrderBy :: Ord a => (CostCentre -> a) -> Text -> Text -> CostCentreTree -> Maybe (Callee, Seq CallSite)
Documentation
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.
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.
buildCostCentresOrderBy Source #
Arguments
| :: Ord a | |
| => (CostCentre -> a) | Sorting key function |
| -> CostCentreTree | |
| -> Maybe (Tree CostCentre) |
buildCallSitesOrderBy Source #
Arguments
| :: Ord a | |
| => (CostCentre -> a) | Sorting key function |
| -> Text | Cost-centre name |
| -> Text | Module name |
| -> CostCentreTree | |
| -> Maybe (Callee, Seq CallSite) |