Safe Haskell | None |
---|---|
Language | Haskell2010 |
Code to deal with configuration information, including gathering it from the host environment. Also deals with command line arguments.
- getConfig :: [Flag] -> [Benchmark DefaultParamMeaning] -> IO Config
- augmentResultWithConfig :: Config -> BenchmarkResult -> IO BenchmarkResult
- addPlugin :: Plugin p => p -> PlugConf p -> Config -> Config
- data Flag
- = ParBench
- | BenchsetName String
- | BinDir FilePath
- | NoRecomp
- | NoCabal
- | NoClean
- | ShortRun
- | KeepGoing
- | NumTrials String
- | SkipTo String
- | RunOnly Int
- | RetryFailed Int
- | RunID String
- | CIBuildID String
- | ForceHostName String
- | CabalPath String
- | GHCPath String
- | ShowHelp
- | ShowVersion
- | ShowBenchmarks
- | DisablePlug String
- | AddLSPCI
- | ExtraParam ParamSetting
- | SetAffinityPacked
- | SetAffinitySpreadOut
- all_cli_options :: [(String, [OptDescr Flag])]
Configurations
getConfig :: [Flag] -> [Benchmark DefaultParamMeaning] -> IO Config Source
Retrieve the (default) configuration from the environment, it may subsequently be tinkered with. This procedure should be idempotent.
augmentResultWithConfig :: Config -> BenchmarkResult -> IO BenchmarkResult Source
Fill in "static" fields of a BenchmarkResult row based on the Config
data.
addPlugin :: Plugin p => p -> PlugConf p -> Config -> Config Source
This abstracts over the actions we need to take to properly add
an additional plugin to the Config
.
Command line options
Command line flags to the benchmarking executable.
all_cli_options :: [(String, [OptDescr Flag])] Source