diff --git a/src/main/java/org/gradle/profiler/maven/MavenScenarioInvoker.java b/src/main/java/org/gradle/profiler/maven/MavenScenarioInvoker.java index ff027dca..e2d78df6 100644 --- a/src/main/java/org/gradle/profiler/maven/MavenScenarioInvoker.java +++ b/src/main/java/org/gradle/profiler/maven/MavenScenarioInvoker.java @@ -26,6 +26,8 @@ public void run(MavenScenarioDefinition scenario, InvocationSettings settings, C Map profileEnvironment; SnapshotCapturingProfilerController controller; + // TODO This only works with Async profiler, since the only thing we call from the controller is stopSession() + // Capture this in the type hierarchy somehow if (settings.getProfiler() instanceof InstrumentingProfiler) { InstrumentingProfiler profiler = (InstrumentingProfiler) settings.getProfiler(); ScenarioSettings scenarioSettings = new ScenarioSettings(settings, scenario);