Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Environment = Environment {}
- 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 -> (Environment -> IO ()) -> Environment -> IO ()
- runWithNextVar :: Options -> (NextRef AllStats -> IO ()) -> (NextRef AllStats -> IO ()) -> (Environment -> IO ()) -> IO AllStats
- printLastSamples :: Options -> NextRef AllStats -> IO ()
- runNonInteractive :: Options -> (Environment -> IO ()) -> IO AllStats
- printLoop :: Options -> DisplayContext -> Vty -> NextRef AllStats -> IO ()
- processInputForCtrlC :: TChan Event -> IO ThreadId
- updateUI :: Maybe Int -> URLDisplay -> DisplayContext -> AllStats -> IO ()
- runInteractive :: Options -> (Environment -> IO ()) -> IO AllStats
- run :: Options -> [(String, Environment -> IO ())] -> IO (HashMap String AllStats)
- runOne :: Options -> (Environment -> IO ()) -> IO AllStats
Documentation
data Environment Source #
The Environment
holds state necessary to make and record HTTP calls.
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.
runAction :: Logger -> Int -> Int -> RunType -> (Environment -> IO ()) -> Environment -> IO () Source #
runWithNextVar :: Options -> (NextRef AllStats -> IO ()) -> (NextRef AllStats -> IO ()) -> (Environment -> IO ()) -> IO AllStats Source #
runNonInteractive :: Options -> (Environment -> IO ()) -> IO AllStats Source #
processInputForCtrlC :: TChan Event -> IO ThreadId Source #
runInteractive :: Options -> (Environment -> IO ()) -> IO AllStats Source #