com.google.caliper.runner
Class ArbitraryMeasurementInstrument
java.lang.Object
com.google.caliper.runner.Instrument
com.google.caliper.runner.ArbitraryMeasurementInstrument
public final class ArbitraryMeasurementInstrument
- extends Instrument
Instrument for taking an arbitrary measurement. When using this instrument, the benchmark code
itself returns the value. See ArbitraryMeasurement
.
- Author:
- schmoe@google.com (mike nonemacher)
ArbitraryMeasurementInstrument
public ArbitraryMeasurementInstrument()
isBenchmarkMethod
public boolean isBenchmarkMethod(Method method)
- Specified by:
isBenchmarkMethod
in class Instrument
createBenchmarkMethod
public BenchmarkMethod createBenchmarkMethod(BenchmarkClass benchmarkClass,
Method method)
throws InvalidBenchmarkException
- Specified by:
createBenchmarkMethod
in class Instrument
- Throws:
InvalidBenchmarkException
dryRun
public void dryRun(Benchmark benchmark,
BenchmarkMethod benchmarkMethod)
throws UserCodeException
- Specified by:
dryRun
in class Instrument
- Throws:
UserCodeException
workerOptions
public Map<String,String> workerOptions()
- Overrides:
workerOptions
in class Instrument
workerClass
public Class<? extends Worker> workerClass()
- Specified by:
workerClass
in class Instrument
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.