perf-0.12.0.1: Low-level run time measurement.
Safe HaskellSafe-Inferred
LanguageGHC2021

Perf.Space

Description

Space performance measurement.

Synopsis

Documentation

data SpaceStats Source #

GHC allocation statistics.

ssToList :: Num a => SpaceStats -> [a] Source #

Convert SpaceStats to a list of numbers.

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.

newtype Bytes Source #

Number of bytes

Constructors

Bytes 

Fields

Instances

Instances details
Monoid Bytes Source # 
Instance details

Defined in Perf.Space

Methods

mempty :: Bytes #

mappend :: Bytes -> Bytes -> Bytes #

mconcat :: [Bytes] -> Bytes #

Semigroup Bytes Source # 
Instance details

Defined in Perf.Space

Methods

(<>) :: Bytes -> Bytes -> Bytes #

sconcat :: NonEmpty Bytes -> Bytes #

stimes :: Integral b => b -> Bytes -> Bytes #

Enum Bytes Source # 
Instance details

Defined in Perf.Space

Num Bytes Source # 
Instance details

Defined in Perf.Space

Read Bytes Source # 
Instance details

Defined in Perf.Space

Integral Bytes Source # 
Instance details

Defined in Perf.Space

Real Bytes Source # 
Instance details

Defined in Perf.Space

Methods

toRational :: Bytes -> Rational #

Show Bytes Source # 
Instance details

Defined in Perf.Space

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Eq Bytes Source # 
Instance details

Defined in Perf.Space

Methods

(==) :: Bytes -> Bytes -> Bool #

(/=) :: Bytes -> Bytes -> Bool #

Ord Bytes Source # 
Instance details

Defined in Perf.Space

Methods

compare :: Bytes -> Bytes -> Ordering #

(<) :: Bytes -> Bytes -> Bool #

(<=) :: Bytes -> Bytes -> Bool #

(>) :: Bytes -> Bytes -> Bool #

(>=) :: Bytes -> Bytes -> Bool #

max :: Bytes -> Bytes -> Bytes #

min :: Bytes -> Bytes -> Bytes #