com.google.caliper.runner
Class AllocationSizeInstrument

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

public class AllocationSizeInstrument
extends Instrument

AllocationInstrument that measures the total number of bytes allocated by the benchmark method.

Author:
schmoe@google.com (mike nonemacher)

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

Constructor Detail

AllocationSizeInstrument

public AllocationSizeInstrument()
Method Detail

workerClass

public Class<? extends Worker> workerClass()
Specified by:
workerClass 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


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