Skip to content

Commit f97ff03

Browse files
committed
v2
1 parent a7e2147 commit f97ff03

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

ddprof-stresstest/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ task runStressTests(type: Exec) {
3939
}
4040
group = 'Execution'
4141
description = 'Run JMH stresstests'
42-
commandLine "${javaHome}/bin/java", '-jar', 'build/libs/stresstests.jar', 'counters.*'
42+
commandLine "${javaHome}/bin/java", '-jar', 'build/libs/stresstests.jar', '-prof', 'com.datadoghq.profiler.stresstest.WhiteboxProfiler', 'counters.*'
4343
}
4444

4545
tasks.withType(JavaCompile).configureEach {

ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/Main.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ public class Main {
1616
public static final String SCENARIOS_PACKAGE = "com.datadoghq.profiler.stresstest.scenarios.";
1717

1818
public static void main(String... args) throws Exception {
19-
String filter = "*";
20-
if (args.length >= 1) {
21-
filter = args[0];
22-
}
2319
CommandLineOptions commandLineOptions = new CommandLineOptions(args);
2420
Mode mode = Mode.AverageTime;
2521
Options options = new OptionsBuilder()
2622
.parent(new CommandLineOptions(args))
27-
.include(SCENARIOS_PACKAGE + filter)
28-
.addProfiler(WhiteboxProfiler.class)
2923
.forks(commandLineOptions.getForkCount().orElse(1))
3024
.warmupIterations(commandLineOptions.getWarmupIterations().orElse(0))
3125
.measurementIterations(commandLineOptions.getMeasurementIterations().orElse(1))

0 commit comments

Comments
 (0)