Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newStandaloneRecorder :: IO (NextRef AllStats, Thread, Recorder)
- sinkRecorder :: Logger -> Recorder -> IO (NextRef AllStats, Thread)
- updateSampler :: NextRef AllStats -> Event -> IO AllStats
- collectEvent :: Logger -> NextRef AllStats -> Recorder -> IO ()
- runAction :: Logger -> Int -> Int -> RunType -> (Recorder -> IO ()) -> Recorder -> IO ()
- runWithNextVar :: Options -> (NextRef AllStats -> IO ()) -> (NextRef AllStats -> IO ()) -> (Recorder -> IO ()) -> IO AllStats
- printLastSamples :: Options -> NextRef AllStats -> IO ()
- runNonInteractive :: Options -> (Recorder -> IO ()) -> IO AllStats
- printLoop :: Options -> DisplayContext -> Vty -> NextRef AllStats -> IO ()
- processInputForCtrlC :: TChan Event -> IO ThreadId
- updateUI :: Maybe Int -> DisplayContext -> AllStats -> IO ()
- runInteractive :: Options -> (Recorder -> IO ()) -> IO AllStats
- run :: Options -> [(String, Recorder -> IO ())] -> IO (HashMap String AllStats)
Documentation
newStandaloneRecorder :: IO (NextRef AllStats, Thread, Recorder) Source #
Typically wrecker
will control benchmarking actions. Howeve,r in some situations
a benchmark might require more control.
To facilitate more complex scenarios wrecker
provide newStandaloneRecorder
which provides a Recorder
and Thread
that processes the events, and a
reference to the current stats.
runWithNextVar :: Options -> (NextRef AllStats -> IO ()) -> (NextRef AllStats -> IO ()) -> (Recorder -> IO ()) -> IO AllStats Source #
processInputForCtrlC :: TChan Event -> IO ThreadId Source #