Safe Haskell | None |
---|
- data TimeAllocProfile = TimeAllocProfile {}
- data TotalTime = TotalTime {}
- newtype TotalAlloc = TotalAlloc {}
- data BriefCostCentre = BriefCostCentre {}
- data CostCentre = CostCentre {}
- type CostCentreNo = Int
- data Callee = Callee {
- calleeName :: Text
- calleeModule :: Text
- calleeEntries :: !Integer
- calleeTime :: !Double
- calleeAlloc :: !Double
- calleeTicks :: !(Maybe Integer)
- calleeBytes :: !(Maybe Integer)
- data CallSite = CallSite {}
- timeAllocProfile :: Parser TimeAllocProfile
- data 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)
Documentation
total time
in the profiling reports
TotalTime | |
|
newtype TotalAlloc Source
total alloc
in the profiling reports
TotalAlloc | |
|
data BriefCostCentre Source
BriefCostCentre | |
|
data CostCentre Source
Cost-centre node
CostCentre | |
|
type CostCentreNo = IntSource
Callee | |
|
CallSite | |
|
Parser
Cost-centre tree
profileCostCentres :: TimeAllocProfile -> Maybe (Tree CostCentre)Source
Build a tree of cost-centres from a profiling report.
profileCostCentresOrderBySource
:: 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.
:: 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.
:: 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.