OptionsBuilderpublic 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_BENCHMARKSChainedOptionsBuilder exclude(String regexp)
regexp - to match benchmark againstChainedOptionsBuilder resultFormat(ResultFormatType type)
type - resultformat typeDefaults.RESULT_FORMATChainedOptionsBuilder output(String filename)
filename - file nameChainedOptionsBuilder result(String filename)
filename - file nameDefaults.RESULT_FILE_PREFIXChainedOptionsBuilder shouldDoGC(boolean value)
value - flagDefaults.DO_GCChainedOptionsBuilder 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.VERBOSITYChainedOptionsBuilder shouldFailOnError(boolean value)
value - flagDefaults.FAIL_ON_ERRORChainedOptionsBuilder threads(int count)
count - number of threadsThreads,
Defaults.THREADSChainedOptionsBuilder threadGroups(int... groups)
groups - thread distributionGroup,
GroupThreadsChainedOptionsBuilder syncIterations(boolean value)
value - flagDefaults.SYNC_ITERATIONSChainedOptionsBuilder warmupIterations(int value)
value - flagWarmup,
Defaults.WARMUP_ITERATIONS,
Defaults.WARMUP_ITERATIONS_SINGLESHOTChainedOptionsBuilder warmupBatchSize(int value)
value - batch sizeWarmup,
Defaults.WARMUP_BATCHSIZEChainedOptionsBuilder warmupTime(TimeValue value)
value - timeWarmup,
Defaults.WARMUP_TIMEChainedOptionsBuilder warmupMode(WarmupMode mode)
mode - to useDefaults.WARMUP_MODEChainedOptionsBuilder includeWarmup(String regexp)
regexp - to match benchmarks againstChainedOptionsBuilder measurementIterations(int count)
count - number of iterationsMeasurement,
Defaults.MEASUREMENT_ITERATIONS,
Defaults.MEASUREMENT_ITERATIONS_SINGLESHOTChainedOptionsBuilder measurementBatchSize(int value)
value - batch sizeMeasurement,
Defaults.MEASUREMENT_BATCHSIZEChainedOptionsBuilder measurementTime(TimeValue value)
value - timeMeasurement,
Defaults.MEASUREMENT_TIMEChainedOptionsBuilder mode(Mode mode)
mode - benchmark modeBenchmarkMode,
Defaults.BENCHMARK_MODEChainedOptionsBuilder timeUnit(TimeUnit tu)
tu - time unitOutputTimeUnit,
Defaults.OUTPUT_TIMEUNITChainedOptionsBuilder operationsPerInvocation(int value)
value - operations per invocation.OperationsPerInvocation,
Defaults.OPS_PER_INVOCATIONChainedOptionsBuilder forks(int value)
value - number of forksFork,
Defaults.MEASUREMENT_FORKSChainedOptionsBuilder warmupForks(int value)
value - number of ignored forksFork,
Defaults.WARMUP_FORKSChainedOptionsBuilder jvm(String path)
path - path to /bin/javaChainedOptionsBuilder jvmArgs(String... value)
value - arguments to add to the runForkChainedOptionsBuilder jvmArgsAppend(String... value)
value - arguments to add to the runForkChainedOptionsBuilder jvmArgsPrepend(String... value)
value - arguments to add to the runForkChainedOptionsBuilder detectJvmArgs()
ChainedOptionsBuilder param(String name, String... values)
name - parametervalues - sequence of values to setParamChainedOptionsBuilder timeout(TimeValue value)
value - timeDefaults.TIMEOUTCopyright © 2012-2017 Oracle. All Rights Reserved.