com.google.caliper.runner
Class MicrobenchmarkInstrument

java.lang.Object
  extended by com.google.caliper.runner.Instrument
      extended by com.google.caliper.runner.MicrobenchmarkInstrument

public final class MicrobenchmarkInstrument
extends Instrument


Constructor Summary
MicrobenchmarkInstrument()
           
 
Method Summary
 BenchmarkMethod createBenchmarkMethod(BenchmarkClass benchmarkClass, Method method)
           
 void dryRun(Benchmark benchmark, BenchmarkMethod benchmarkMethod)
           
 boolean equals(Object object)
           
 ShortDuration estimateRuntimePerTrial()
           
 int hashCode()
           
 boolean isBenchmarkMethod(Method method)
           
 String toString()
           
 Class<? extends Worker> workerClass()
           
 Map<String,String> workerOptions()
           
 
Methods inherited from class com.google.caliper.runner.Instrument
createBenchmarkMethodFromTimeMethod, isTimeMethod
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MicrobenchmarkInstrument

public MicrobenchmarkInstrument()
Method Detail

estimateRuntimePerTrial

public ShortDuration estimateRuntimePerTrial()
Overrides:
estimateRuntimePerTrial in class Instrument

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

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.