| Safe Haskell | None |
|---|
GHC.RTS.TimeAllocProfile
Contents
- 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
Constructors
| TotalTime | |
Fields
| |
newtype TotalAlloc Source
total alloc in the profiling reports
Constructors
| TotalAlloc | |
Fields
| |
Instances
data BriefCostCentre Source
Constructors
| BriefCostCentre | |
Fields
| |
Instances
data CostCentre Source
Cost-centre node
Constructors
| CostCentre | |
Fields
| |
Instances
type CostCentreNo = IntSource
Constructors
| Callee | |
Fields
| |
Constructors
| CallSite | |
Fields
| |
Parser
Cost-centre tree
data CostCentreTree Source
Instances
profileCostCentres :: TimeAllocProfile -> Maybe (Tree CostCentre)Source
Build a tree of cost-centres from a profiling report.
profileCostCentresOrderBySource
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.
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.