com.google.caliper.runner
Class BenchmarkClass
java.lang.Object
com.google.caliper.runner.BenchmarkClass
public final class BenchmarkClass
- extends Object
An instance of this type represents a user-provided class that extends Benchmark. It manages
creating, setting up and destroying instances of that class.
BenchmarkClass
public BenchmarkClass(Class<?> aClass)
throws InvalidBenchmarkException
- Throws:
InvalidBenchmarkException
userParameters
public ParameterSet userParameters()
injectableVmArguments
public ParameterSet injectableVmArguments()
findAllBenchmarkMethods
public com.google.common.collect.ImmutableSortedMap<String,BenchmarkMethod> findAllBenchmarkMethods(Instrument instrument)
throws InvalidBenchmarkException
- Throws:
InvalidBenchmarkException
createAndStage
public Benchmark createAndStage(Scenario scenario)
throws UserCodeException
- Throws:
UserCodeException
cleanup
public void cleanup(Benchmark benchmark)
throws UserCodeException
- Throws:
UserCodeException
name
public String name()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.