Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data TimeAllocProfile = TimeAllocProfile {}
- data TotalTime = TotalTime {}
- newtype TotalAlloc = TotalAlloc {}
- data BriefCostCentre = BriefCostCentre {}
- data CostCentre = CostCentre {
- costCentreName :: !Text
- costCentreModule :: !Text
- costCentreSrc :: !(Maybe Text)
- costCentreNo :: !CostCentreNo
- costCentreEntries :: !Integer
- costCentreIndTime :: !Double
- costCentreIndAlloc :: !Double
- costCentreInhTime :: !Double
- costCentreInhAlloc :: !Double
- costCentreTicks :: !(Maybe Integer)
- costCentreBytes :: !(Maybe Integer)
- 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 = Int Source #
Callee | |
|
CallSite | |
|
Parser
Cost-centre tree
profileCostCentres :: TimeAllocProfile -> Maybe (Tree CostCentre) Source #
Build a tree of cost-centres from a profiling report.
profileCostCentresOrderBy Source #
:: 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.
Build a list of call-sites (caller functions) for a specified cost-centre name and module name.
profileCallSitesOrderBy Source #
:: 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.