diff --git a/ddprof-stresstest/build.gradle b/ddprof-stresstest/build.gradle index 2934e4ac..9f073711 100644 --- a/ddprof-stresstest/build.gradle +++ b/ddprof-stresstest/build.gradle @@ -39,7 +39,7 @@ task runStressTests(type: Exec) { } group = 'Execution' description = 'Run JMH stresstests' - commandLine "${javaHome}/bin/java", '-jar', 'build/libs/stresstests.jar', 'counters.*' + commandLine "${javaHome}/bin/java", '-jar', 'build/libs/stresstests.jar', '-prof', 'com.datadoghq.profiler.stresstest.WhiteboxProfiler', 'counters.*' } tasks.withType(JavaCompile).configureEach { diff --git a/ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/Main.java b/ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/Main.java index d71346a8..c8d5994f 100644 --- a/ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/Main.java +++ b/ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/Main.java @@ -16,19 +16,10 @@ public class Main { public static final String SCENARIOS_PACKAGE = "com.datadoghq.profiler.stresstest.scenarios."; public static void main(String... args) throws Exception { - String filter = "*"; - if (args.length == 1) { - filter = args[0]; - } else if (args.length > 1) { - System.err.println("Usage: java -jar ddprof-stresstest.jar [scenario filter]"); - System.exit(1); - } CommandLineOptions commandLineOptions = new CommandLineOptions(args); Mode mode = Mode.AverageTime; Options options = new OptionsBuilder() .parent(new CommandLineOptions(args)) - .include(SCENARIOS_PACKAGE + filter) - .addProfiler(WhiteboxProfiler.class) .forks(commandLineOptions.getForkCount().orElse(1)) .warmupIterations(commandLineOptions.getWarmupIterations().orElse(0)) .measurementIterations(commandLineOptions.getMeasurementIterations().orElse(1))