com.google.caliper.runner
Class BenchmarkClass

java.lang.Object
  extended by 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.


Constructor Summary
BenchmarkClass(Class<?> aClass)
           
 
Method Summary
 void cleanup(Benchmark benchmark)
           
 Benchmark createAndStage(Scenario scenario)
           
 com.google.common.collect.ImmutableSortedMap<String,BenchmarkMethod> findAllBenchmarkMethods(Instrument instrument)
           
 ParameterSet injectableVmArguments()
           
 String name()
           
 String toString()
           
 ParameterSet userParameters()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BenchmarkClass

public BenchmarkClass(Class<?> aClass)
               throws InvalidBenchmarkException
Throws:
InvalidBenchmarkException
Method Detail

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.