wrecker-1.2.2.0: An HTTP Performance Benchmarker

Safe HaskellNone
LanguageHaskell2010

Wrecker.Recorder

Synopsis

Documentation

data Event Source #

Constructors

Event 

Fields

Instances

data Recorder Source #

An opaque type for recording actions for profiling. To obtain a Recorder use either run, defaultMain, runOne or newStandaloneRecorder.

Constructors

Recorder 

Fields

record :: forall a. Recorder -> String -> IO a -> IO a Source #

record is a low level function for collecting timing information. Wrap each action of interest in a call to record.

record recorder $ threadDelay 1000000

record measures the elapsed time of the call, and catches HttpException in the case of failure. This means failures must be thrown if they are to be properly recorded.