Serializable
, Options
public class CommandLineOptions extends Object implements Options
Constructor | Description |
---|---|
CommandLineOptions(String... argv) |
Parses the given command line.
|
Modifier and Type | Method | Description |
---|---|---|
Collection<Mode> |
getBenchModes() |
Benchmarks modes to execute.
|
List<String> |
getExcludes() |
Which benchmarks to omit?
|
Optional<Integer> |
getForkCount() |
Fork count
|
List<String> |
getIncludes() |
Which benchmarks to execute?
|
Optional<String> |
getJvm() |
JVM executable to use for forks
|
Optional<Collection<String>> |
getJvmArgs() |
JVM parameters to use with forks
|
Optional<Collection<String>> |
getJvmArgsAppend() |
JVM parameters to use with forks (these options will be appended
after any other JVM option)
|
Optional<Collection<String>> |
getJvmArgsPrepend() |
JVM parameters to use with forks (these options will be prepended
before any other JVM option)
|
Optional<Integer> |
getMeasurementBatchSize() |
Number of batch size for measurement
|
Optional<Integer> |
getMeasurementIterations() |
Number of measurement iterations
|
Optional<TimeValue> |
getMeasurementTime() |
The duration for measurement iterations
|
Optional<Integer> |
getOperationsPerInvocation() |
Operations per invocation.
|
Optional<String> |
getOutput() |
Which file to use for dumping the output
|
Optional<Collection<String>> |
getParameter(String name) |
The overridden value of the parameter.
|
List<ProfilerConfig> |
getProfilers() |
Profilers to use for the run.
|
Optional<String> |
getResult() |
Which file to use for dumping the result
|
Optional<ResultFormatType> |
getResultFormat() |
Result format to use
|
Optional<int[]> |
getThreadGroups() |
Thread subgroups distribution.
|
Optional<Integer> |
getThreads() |
Number of threads to run
|
Optional<TimeValue> |
getTimeout() |
Timeout: how long to wait for an iteration to complete.
|
Optional<TimeUnit> |
getTimeUnit() |
Timeunit to use in units.
|
Optional<Integer> |
getWarmupBatchSize() |
Number of batch size for warmup
|
Optional<Integer> |
getWarmupForkCount() |
Number of initial forks to ignore the results for
|
List<String> |
getWarmupIncludes() |
Which benchmarks to warmup before doing the run.
|
Optional<Integer> |
getWarmupIterations() |
Number of warmup iterations
|
Optional<WarmupMode> |
getWarmupMode() |
Warmup mode.
|
Optional<TimeValue> |
getWarmupTime() |
The duration for warmup iterations
|
void |
listProfilers() |
|
void |
listResultFormats() |
|
Optional<Boolean> |
shouldDoGC() |
Should force GC between iterations?
|
Optional<Boolean> |
shouldFailOnError() |
Should harness terminate on first error encountered?
|
boolean |
shouldHelp() |
|
boolean |
shouldList() |
|
boolean |
shouldListProfilers() |
|
boolean |
shouldListResultFormats() |
|
boolean |
shouldListWithParams() |
|
Optional<Boolean> |
shouldSyncIterations() |
Should synchronize iterations?
|
void |
showHelp() |
|
Optional<Collection<String>> |
treatQuoted(joptsimple.OptionSet set,
joptsimple.OptionSpec<String> spec) |
|
Optional<VerboseMode> |
verbosity() |
How verbose should we be?
|
public CommandLineOptions(String... argv) throws CommandLineOptionException
argv
- argument listCommandLineOptionException
- if some options are misspelledpublic Optional<Collection<String>> treatQuoted(joptsimple.OptionSet set, joptsimple.OptionSpec<String> spec)
public void showHelp() throws IOException
IOException
public void listProfilers()
public void listResultFormats()
public boolean shouldList()
public boolean shouldListWithParams()
public boolean shouldListResultFormats()
public boolean shouldHelp()
public boolean shouldListProfilers()
public Optional<WarmupMode> getWarmupMode()
Options
getWarmupMode
in interface Options
WarmupMode
public List<String> getIncludes()
Options
getIncludes
in interface Options
public List<String> getExcludes()
Options
getExcludes
in interface Options
public List<String> getWarmupIncludes()
Options
getWarmupIncludes
in interface Options
public Optional<String> getJvm()
Options
public Optional<Collection<String>> getJvmArgs()
Options
getJvmArgs
in interface Options
Fork
public Optional<Collection<String>> getJvmArgsAppend()
Options
getJvmArgsAppend
in interface Options
Fork
public Optional<Collection<String>> getJvmArgsPrepend()
Options
getJvmArgsPrepend
in interface Options
Fork
public Optional<Collection<String>> getParameter(String name)
Options
getParameter
in interface Options
name
- parameter nameParam
public Optional<Integer> getForkCount()
Options
getForkCount
in interface Options
Fork
public Optional<Integer> getWarmupForkCount()
Options
getWarmupForkCount
in interface Options
Fork
public Optional<String> getOutput()
Options
public Optional<ResultFormatType> getResultFormat()
Options
getResultFormat
in interface Options
public Optional<String> getResult()
Options
public Optional<Integer> getMeasurementIterations()
Options
getMeasurementIterations
in interface Options
Measurement
public Optional<Integer> getMeasurementBatchSize()
Options
getMeasurementBatchSize
in interface Options
Measurement
public Optional<TimeValue> getMeasurementTime()
Options
getMeasurementTime
in interface Options
Measurement
public Optional<TimeValue> getWarmupTime()
Options
getWarmupTime
in interface Options
Warmup
public Optional<Integer> getWarmupIterations()
Options
getWarmupIterations
in interface Options
Warmup
public Optional<Integer> getWarmupBatchSize()
Options
getWarmupBatchSize
in interface Options
Warmup
public Optional<Integer> getThreads()
Options
getThreads
in interface Options
Threads
public Optional<int[]> getThreadGroups()
Options
getThreadGroups
in interface Options
Group
,
GroupThreads
public Optional<Boolean> shouldDoGC()
Options
shouldDoGC
in interface Options
public Optional<Boolean> shouldSyncIterations()
Options
shouldSyncIterations
in interface Options
public Optional<VerboseMode> verbosity()
Options
public Optional<TimeUnit> getTimeUnit()
Options
getTimeUnit
in interface Options
OutputTimeUnit
public Optional<Integer> getOperationsPerInvocation()
Options
getOperationsPerInvocation
in interface Options
OperationsPerInvocation
public Optional<Boolean> shouldFailOnError()
Options
shouldFailOnError
in interface Options
public List<ProfilerConfig> getProfilers()
Options
getProfilers
in interface Options
public Collection<Mode> getBenchModes()
Options
getBenchModes
in interface Options
BenchmarkMode
public Optional<TimeValue> getTimeout()
Options
getTimeout
in interface Options
Copyright © 2012-2016 Oracle. All Rights Reserved.