OptionsBuilder
public interface ChainedOptionsBuilder
Modifier and Type | Method | Description |
---|---|---|
ChainedOptionsBuilder |
addProfiler(Class<? extends Profiler> profiler) |
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(Class<? extends Profiler> profiler,
String initLine) |
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(String profiler) |
Add the profiler in the run
|
ChainedOptionsBuilder |
addProfiler(String profiler,
String initLine) |
Add the profiler in the run
|
Options |
build() |
Produce the final Options
|
ChainedOptionsBuilder |
detectJvmArgs() |
Autodetect forked JVM arguments from the parent VM.
|
ChainedOptionsBuilder |
exclude(String regexp) |
Exclude benchmarks from the run
(Can be used multiple times)
|
ChainedOptionsBuilder |
forks(int value) |
Number of forks to use in the run
|
ChainedOptionsBuilder |
include(String regexp) |
Include benchmark in the run
(Can be used multiple times)
|
ChainedOptionsBuilder |
includeWarmup(String regexp) |
What other benchmarks to warmup along the way
|
ChainedOptionsBuilder |
jvm(String path) |
Forked JVM to use.
|
ChainedOptionsBuilder |
jvmArgs(String... value) |
Forked JVM arguments.
|
ChainedOptionsBuilder |
jvmArgsAppend(String... value) |
Append forked JVM arguments:
These options go after other options.
|
ChainedOptionsBuilder |
jvmArgsPrepend(String... value) |
Prepend forked JVM arguments:
These options go before any other options.
|
ChainedOptionsBuilder |
measurementBatchSize(int value) |
How large measurement batchSize should be?
|
ChainedOptionsBuilder |
measurementIterations(int count) |
How many measurement measurementIterations to do
|
ChainedOptionsBuilder |
measurementTime(TimeValue value) |
How long each measurement iteration should take?
|
ChainedOptionsBuilder |
mode(Mode mode) |
Benchmark mode.
|
ChainedOptionsBuilder |
operationsPerInvocation(int value) |
Operations per invocation.
|
ChainedOptionsBuilder |
output(String filename) |
Output filename to write the run log to
|
ChainedOptionsBuilder |
param(String name,
String... values) |
Set benchmark parameter values.
|
ChainedOptionsBuilder |
parent(Options other) |
Override the defaults from the given option.
|
ChainedOptionsBuilder |
result(String filename) |
Output filename to write the result to
|
ChainedOptionsBuilder |
resultFormat(ResultFormatType type) |
ResultFormatType to use in the run
|
ChainedOptionsBuilder |
shouldDoGC(boolean value) |
Should do GC between measurementIterations?
|
ChainedOptionsBuilder |
shouldFailOnError(boolean value) |
Should fail on first benchmark error?
|
ChainedOptionsBuilder |
syncIterations(boolean value) |
Should synchronize measurementIterations?
|
ChainedOptionsBuilder |
threadGroups(int... groups) |
Subgroups thread distribution.
|
ChainedOptionsBuilder |
threads(int count) |
Number of threads to run the benchmark in
|
ChainedOptionsBuilder |
timeout(TimeValue value) |
How long to wait for iteration execution?
|
ChainedOptionsBuilder |
timeUnit(TimeUnit tu) |
Timeunit to use in results
|
ChainedOptionsBuilder |
verbosity(VerboseMode mode) |
Control verbosity level.
|
ChainedOptionsBuilder |
warmupBatchSize(int value) |
How large warmup batchSize should be?
|
ChainedOptionsBuilder |
warmupForks(int value) |
Number of ignored forks
|
ChainedOptionsBuilder |
warmupIterations(int value) |
How many warmup iterations to do?
|
ChainedOptionsBuilder |
warmupMode(WarmupMode mode) |
Warmup mode to use
|
ChainedOptionsBuilder |
warmupTime(TimeValue value) |
How long each warmup iteration should take?
|
Options build()
ChainedOptionsBuilder parent(Options other)
other
- options to base onChainedOptionsBuilder include(String regexp)
regexp
- to match benchmarks againstDefaults.INCLUDE_BENCHMARKS
ChainedOptionsBuilder exclude(String regexp)
regexp
- to match benchmark againstChainedOptionsBuilder resultFormat(ResultFormatType type)
type
- resultformat typeDefaults.RESULT_FORMAT
ChainedOptionsBuilder output(String filename)
filename
- file nameChainedOptionsBuilder result(String filename)
filename
- file nameDefaults.RESULT_FILE_PREFIX
ChainedOptionsBuilder shouldDoGC(boolean value)
value
- flagDefaults.DO_GC
ChainedOptionsBuilder addProfiler(Class<? extends Profiler> profiler)
profiler
- profiler classChainedOptionsBuilder addProfiler(Class<? extends Profiler> profiler, String initLine)
profiler
- profiler classinitLine
- profiler options initialization lineChainedOptionsBuilder addProfiler(String profiler)
profiler
- profiler class name, or profiler aliasChainedOptionsBuilder addProfiler(String profiler, String initLine)
profiler
- profiler class name, or profiler aliasinitLine
- profiler options initialization lineChainedOptionsBuilder verbosity(VerboseMode mode)
mode
- flagDefaults.VERBOSITY
ChainedOptionsBuilder shouldFailOnError(boolean value)
value
- flagDefaults.FAIL_ON_ERROR
ChainedOptionsBuilder threads(int count)
count
- number of threadsThreads
,
Defaults.THREADS
ChainedOptionsBuilder threadGroups(int... groups)
groups
- thread distributionGroup
,
GroupThreads
ChainedOptionsBuilder syncIterations(boolean value)
value
- flagDefaults.SYNC_ITERATIONS
ChainedOptionsBuilder warmupIterations(int value)
value
- flagWarmup
,
Defaults.WARMUP_ITERATIONS
,
Defaults.WARMUP_ITERATIONS_SINGLESHOT
ChainedOptionsBuilder warmupBatchSize(int value)
value
- batch sizeWarmup
,
Defaults.WARMUP_BATCHSIZE
ChainedOptionsBuilder warmupTime(TimeValue value)
value
- timeWarmup
,
Defaults.WARMUP_TIME
ChainedOptionsBuilder warmupMode(WarmupMode mode)
mode
- to useDefaults.WARMUP_MODE
ChainedOptionsBuilder includeWarmup(String regexp)
regexp
- to match benchmarks againstChainedOptionsBuilder measurementIterations(int count)
count
- number of iterationsMeasurement
,
Defaults.MEASUREMENT_ITERATIONS
,
Defaults.MEASUREMENT_ITERATIONS_SINGLESHOT
ChainedOptionsBuilder measurementBatchSize(int value)
value
- batch sizeMeasurement
,
Defaults.MEASUREMENT_BATCHSIZE
ChainedOptionsBuilder measurementTime(TimeValue value)
value
- timeMeasurement
,
Defaults.MEASUREMENT_TIME
ChainedOptionsBuilder mode(Mode mode)
mode
- benchmark modeBenchmarkMode
,
Defaults.BENCHMARK_MODE
ChainedOptionsBuilder timeUnit(TimeUnit tu)
tu
- time unitOutputTimeUnit
,
Defaults.OUTPUT_TIMEUNIT
ChainedOptionsBuilder operationsPerInvocation(int value)
value
- operations per invocation.OperationsPerInvocation
,
Defaults.OPS_PER_INVOCATION
ChainedOptionsBuilder forks(int value)
value
- number of forksFork
,
Defaults.MEASUREMENT_FORKS
ChainedOptionsBuilder warmupForks(int value)
value
- number of ignored forksFork
,
Defaults.WARMUP_FORKS
ChainedOptionsBuilder jvm(String path)
path
- path to /bin/javaChainedOptionsBuilder jvmArgs(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder jvmArgsAppend(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder jvmArgsPrepend(String... value)
value
- arguments to add to the runFork
ChainedOptionsBuilder detectJvmArgs()
ChainedOptionsBuilder param(String name, String... values)
name
- parametervalues
- sequence of values to setParam
ChainedOptionsBuilder timeout(TimeValue value)
value
- timeDefaults.TIMEOUT
Copyright © 2012-2016 Oracle. All Rights Reserved.