Safe Haskell | None |
---|
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
- measure_ :: MStats -> Text -> IO a -> IO ()
- 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
Returns the actual statistical values.
type StatsTable = HashMap Text StatsPoint
A table where keys are the names of the computations, and values are
StatsPoint
s.
data StatsPoint
StatsPoint | |
|
data MStats