Package org.gradle.profiler
Class ScenarioInvoker<T extends ScenarioDefinition,R extends BuildInvocationResult>
java.lang.Object
org.gradle.profiler.ScenarioInvoker<T,R>
- Direct Known Subclasses:
BuildToolCommandLineInvoker,GradleScenarioInvoker,StudioGradleScenarioInvoker
public abstract class ScenarioInvoker<T extends ScenarioDefinition,R extends BuildInvocationResult>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidrun(T scenario, InvocationSettings settings, Consumer<R> resultConsumer) Runs a scenario and collects the results.protected RrunMeasured(BuildContext buildContext, BuildMutator buildMutator, BuildStepAction<? extends R> action, Consumer<? super R> consumer) Runs a single measured build and collects the result.samplesFor(InvocationSettings settings, T scenario) Which samples will this invoker generate for the given settings?
-
Constructor Details
-
ScenarioInvoker
public ScenarioInvoker()
-
-
Method Details
-
run
public abstract void run(T scenario, InvocationSettings settings, Consumer<R> resultConsumer) throws IOException, InterruptedException Runs a scenario and collects the results.- Throws:
IOExceptionInterruptedException
-
samplesFor
Which samples will this invoker generate for the given settings? -
runMeasured
protected R runMeasured(BuildContext buildContext, BuildMutator buildMutator, BuildStepAction<? extends R> action, Consumer<? super R> consumer) Runs a single measured build and collects the result.
-