com.google.caliper.runner
Class AllocationCountInstrument
java.lang.Object
com.google.caliper.runner.Instrument
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)
AllocationCountInstrument
public AllocationCountInstrument()
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.