Skip to content

Commit 6ac5c92

Browse files
authored
Avoid calling profiler.stop() twice in ThreadFilterBenchmark (#257)
1 parent cf520c4 commit 6ac5c92

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ddprof-stresstest/src/jmh/java/com/datadoghq/profiler/stresstest/scenarios/counters/ThreadFilterBenchmark.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ public void tearDown() {
103103
Thread.currentThread().interrupt();
104104
}
105105

106-
// Stop the profiler if it's active
107-
try {
108-
profiler.stop();
109-
} catch (IllegalStateException e) {
110-
System.out.println("Profiler was not active at teardown.");
111-
}
112-
113106
long endTime = System.currentTimeMillis();
114107
long totalOps = operationCount.get();
115108
double durationSecs = (endTime - startTime) / 1000.0;

0 commit comments

Comments
 (0)