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