com.google.caliper
Class ScenarioSelection

java.lang.Object
  extended by com.google.caliper.ScenarioSelection

public final class ScenarioSelection
extends Object

Figures out which scenarios to benchmark given a benchmark suite, set of user parameters, and set of user VMs.


Constructor Summary
ScenarioSelection(Arguments arguments)
           
ScenarioSelection(Set<String> userVms, com.google.common.collect.Multimap<String,String> vmParameters, String suiteClassName, com.google.common.collect.Multimap<String,String> userParameterArguments, int trials)
           
 
Method Summary
 ConfiguredBenchmark createBenchmark(Scenario scenario)
           
 Set<String> getUserParameterNames()
           
 Set<String> getVmParameterNames()
           
 Scenario normalizeScenario(Scenario scenario)
          Returns a normalized version of scenario, with information from suite assisting in correcting problems.
 List<Scenario> select()
          Returns the selected scenarios for this benchmark.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioSelection

public ScenarioSelection(Arguments arguments)

ScenarioSelection

public ScenarioSelection(Set<String> userVms,
                         com.google.common.collect.Multimap<String,String> vmParameters,
                         String suiteClassName,
                         com.google.common.collect.Multimap<String,String> userParameterArguments,
                         int trials)
Method Detail

select

public List<Scenario> select()
Returns the selected scenarios for this benchmark.


normalizeScenario

public Scenario normalizeScenario(Scenario scenario)
Returns a normalized version of scenario, with information from suite assisting in correcting problems.


getUserParameterNames

public Set<String> getUserParameterNames()

getVmParameterNames

public Set<String> getVmParameterNames()

createBenchmark

public ConfiguredBenchmark createBenchmark(Scenario scenario)


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.