Copyright | (c) 2014 Bryan O'Sullivan |
---|---|
License | BSD-style |
Maintainer | bos@serpentine.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Benchmarking command-line configuration.
Synopsis
- defaultConfig :: Config
- makeSelector :: MatchType -> [String] -> String -> Bool
- parseWith :: Config -> [String] -> (Config, [String])
- describe :: String
- versionInfo :: String
- data Config = Config {
- confInterval :: Maybe Double
- forceGC :: Bool
- timeLimit :: Maybe Double
- minSamples :: Maybe Int
- minDuration :: MilliSeconds
- includeFirstIter :: Bool
- quickMode :: Bool
- measureOnly :: Maybe FilePath
- measureWith :: Maybe FilePath
- resamples :: Int
- regressions :: [([String], String)]
- rawDataFile :: Maybe FilePath
- reportFile :: Maybe FilePath
- csvFile :: Maybe FilePath
- csvRawFile :: Maybe FilePath
- jsonFile :: Maybe FilePath
- junitFile :: Maybe FilePath
- verbosity :: Verbosity
- template :: FilePath
- iters :: Maybe Int64
- match :: MatchType
- mode :: Mode
- displayMode :: DisplayMode
- data Verbosity
- data DisplayMode
- data MatchType
- data Mode
- = List
- | Version
- | Help
- | DefaultMode
Documentation
defaultConfig :: Config Source #
Default benchmarking configuration.
Create a benchmark selector function that can tell if a name given on the command line matches a defined benchmark.
versionInfo :: String Source #
A string describing the version of this benchmark (really, the version of gauge that was used to build it).
Top-level benchmarking configuration.
Config | |
|
Instances
Eq Config Source # | |
Data Config Source # | |
Defined in Gauge.Main.Options gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Config -> c Config # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Config # toConstr :: Config -> Constr # dataTypeOf :: Config -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Config) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Config) # gmapT :: (forall b. Data b => b -> b) -> Config -> Config # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Config -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Config -> r # gmapQ :: (forall d. Data d => d -> u) -> Config -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Config -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Config -> m Config # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Config -> m Config # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Config -> m Config # | |
Read Config Source # | |
Show Config Source # | |
Generic Config Source # | |
type Rep Config Source # | |
Defined in Gauge.Main.Options |
Control the amount of information displayed.
Instances
data DisplayMode Source #
Instances
How to match a benchmark name.
Exact | Match the exact benchmark name |
Prefix | Match by prefix. For example, a prefix of
|
Pattern | Match by searching given substring in benchmark paths. |
IPattern | Same as |
Instances
Bounded MatchType Source # | |
Enum MatchType Source # | |
Defined in Gauge.Main.Options succ :: MatchType -> MatchType # pred :: MatchType -> MatchType # fromEnum :: MatchType -> Int # enumFrom :: MatchType -> [MatchType] # enumFromThen :: MatchType -> MatchType -> [MatchType] # enumFromTo :: MatchType -> MatchType -> [MatchType] # enumFromThenTo :: MatchType -> MatchType -> MatchType -> [MatchType] # | |
Eq MatchType Source # | |
Data MatchType Source # | |
Defined in Gauge.Main.Options gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MatchType -> c MatchType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MatchType # toConstr :: MatchType -> Constr # dataTypeOf :: MatchType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MatchType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MatchType) # gmapT :: (forall b. Data b => b -> b) -> MatchType -> MatchType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MatchType -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MatchType -> r # gmapQ :: (forall d. Data d => d -> u) -> MatchType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> MatchType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MatchType -> m MatchType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MatchType -> m MatchType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MatchType -> m MatchType # | |
Ord MatchType Source # | |
Defined in Gauge.Main.Options | |
Read MatchType Source # | |
Show MatchType Source # | |
Generic MatchType Source # | |
type Rep MatchType Source # | |
Defined in Gauge.Main.Options type Rep MatchType = D1 (MetaData "MatchType" "Gauge.Main.Options" "gauge-0.2.3-Imkc1Njmn4gAlDTJZlAwSy" False) ((C1 (MetaCons "Exact" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Prefix" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "Pattern" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "IPattern" PrefixI False) (U1 :: * -> *))) |
Execution mode for a benchmark program.
List | List all benchmarks. |
Version | Print the version. |
Help | Print help |
DefaultMode | Default Benchmark mode |
Instances
Eq Mode Source # | |
Data Mode Source # | |
Defined in Gauge.Main.Options gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Mode -> c Mode # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Mode # dataTypeOf :: Mode -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Mode) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Mode) # gmapT :: (forall b. Data b => b -> b) -> Mode -> Mode # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Mode -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Mode -> r # gmapQ :: (forall d. Data d => d -> u) -> Mode -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Mode -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Mode -> m Mode # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Mode -> m Mode # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Mode -> m Mode # | |
Read Mode Source # | |
Show Mode Source # | |
Generic Mode Source # | |
type Rep Mode Source # | |
Defined in Gauge.Main.Options type Rep Mode = D1 (MetaData "Mode" "Gauge.Main.Options" "gauge-0.2.3-Imkc1Njmn4gAlDTJZlAwSy" False) ((C1 (MetaCons "List" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Version" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "Help" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "DefaultMode" PrefixI False) (U1 :: * -> *))) |