com.google.caliper.runner
Class AllocationCountInstrument

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

public class AllocationCountInstrument
extends Instrument

AllocationInstrument that measures the number of objects allocated by the benchmark method.

Author:
schmoe@google.com (mike nonemacher)

Constructor Summary
AllocationCountInstrument()
           
 
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

AllocationCountInstrument

public AllocationCountInstrument()
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.