| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Perf.Space
Description
Space performance measurement.
Synopsis
- data SpaceStats = SpaceStats {}
- ssToList :: Num a => SpaceStats -> [a]
- spaceLabels :: [Text]
- space :: Bool -> StepMeasure IO SpaceStats
- allocation :: Bool -> StepMeasure IO Bytes
- newtype Bytes = Bytes {}
Documentation
data SpaceStats Source #
GHC allocation statistics.
Constructors
| SpaceStats | |
Fields
| |
Instances
ssToList :: Num a => SpaceStats -> [a] Source #
Convert SpaceStats to a list of numbers.
spaceLabels :: [Text] Source #
Labels for SpaceStats.
space :: Bool -> StepMeasure IO SpaceStats Source #
A allocation StepMeasure with a flag to determine if performGC should run prior to the measurement.
allocation :: Bool -> StepMeasure IO Bytes Source #
Measure memory allocation, with a flag to run performGC prior to the measurement.