| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHC.Prof
Contents
- data Profile = Profile {}
- data TotalTime = TotalTime {}
- newtype TotalAlloc = TotalAlloc {}
- data AggregateCostCentre = AggregateCostCentre {}
- data CostCentre = CostCentre {
- costCentreName :: !Text
- costCentreModule :: !Text
- costCentreSrc :: !(Maybe Text)
- costCentreNo :: !CostCentreNo
- costCentreEntries :: !Integer
- costCentreIndTime :: !Scientific
- costCentreIndAlloc :: !Scientific
- costCentreInhTime :: !Scientific
- costCentreInhAlloc :: !Scientific
- costCentreTicks :: !(Maybe Integer)
- costCentreBytes :: !(Maybe Integer)
- type CostCentreNo = Int
- data Callee = Callee {
- calleeName :: Text
- calleeModule :: Text
- calleeEntries :: !Integer
- calleeTime :: !Scientific
- calleeAlloc :: !Scientific
- calleeTicks :: !(Maybe Integer)
- calleeBytes :: !(Maybe Integer)
- data CallSite = CallSite {}
- profile :: Parser Profile
- data CostCentreTree
- aggregateCostCentres :: Profile -> [AggregateCostCentre]
- aggregateCostCentresOrderBy :: Ord a => (AggregateCostCentre -> a) -> Profile -> [AggregateCostCentre]
- costCentres :: Profile -> Maybe (Tree CostCentre)
- costCentresOrderBy :: Ord a => (CostCentre -> a) -> Profile -> Maybe (Tree CostCentre)
- callSites :: Text -> Text -> Profile -> Maybe (Callee, Seq CallSite)
- callSitesOrderBy :: Ord a => (CostCentre -> a) -> Text -> Text -> Profile -> Maybe (Callee, Seq CallSite)
Documentation
Top-level profiling report
Constructors
| Profile | |
total time in the profiling reports
Constructors
| TotalTime | |
Fields
| |
newtype TotalAlloc Source #
total alloc in the profiling reports
Constructors
| TotalAlloc | |
Fields
| |
Instances
data AggregateCostCentre Source #
Constructors
| AggregateCostCentre | |
Fields
| |
Instances
data CostCentre Source #
Cost-centre node
Constructors
| CostCentre | |
Fields
| |
Instances
type CostCentreNo = Int Source #
Constructors
| Callee | |
Fields
| |
Constructors
| CallSite | |
Fields
| |
Parser
Cost-centre tree
data CostCentreTree Source #
Instances
aggregateCostCentresOrderBy Source #
Arguments
| :: Ord a | |
| => (AggregateCostCentre -> a) | Sorting key function |
| -> Profile | |
| -> [AggregateCostCentre] |
costCentres :: Profile -> Maybe (Tree CostCentre) Source #
Build a tree of cost-centres from a profiling report.
Arguments
| :: 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.
Build a list of call-sites (caller functions) for a specified cost-centre name and module name.