Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ddprof-stresstest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading