Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ public void tearDown() {
Thread.currentThread().interrupt();
}

// Stop the profiler if it's active
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to stop in tear down or setup in case it is still running ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not against that, but the framework (WhiteboxProfiler) handles it already.

profiler.stop();
} catch (IllegalStateException e) {
System.out.println("Profiler was not active at teardown.");
}

long endTime = System.currentTimeMillis();
long totalOps = operationCount.get();
double durationSecs = (endTime - startTime) / 1000.0;
Expand Down
Loading