Safe Haskell | None |
---|---|
Language | Haskell98 |
A quickly done module that exports utility functions used to collect various statistics. All statistics are stored in a MVar holding a HashMap.
This is not accurate in the presence of lazy evaluation. Nothing is forced.
- measure :: MStats -> Text -> IO a -> IO a
- newStats :: IO MStats
- getStats :: MStats -> IO StatsTable
- type StatsTable = HashMap Text StatsPoint
- data StatsPoint = StatsPoint {}
- data MStats
Documentation
Wraps a computation, and measures related execution statistics.
getStats :: MStats -> IO StatsTable Source
Returns the actual statistical values.
type StatsTable = HashMap Text StatsPoint Source
A table where keys are the names of the computations, and values are
StatsPoint
s.
data StatsPoint Source
StatsPoint | |
|