Inline shouldBenchmark

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-20 12:47:22 +02:00
parent cbc87a2a68
commit 82a68cbfad

View File

@ -124,8 +124,7 @@ public final class BenchmarkManager {
for (ThreadInfo threadInfo2 : threadInfo) {
if (threadInfo2 == null) continue; // Can happen if the thread does not exist
final String name = threadInfo2.getThreadName();
final boolean shouldBenchmark = THREADS.stream().anyMatch(name::startsWith);
if (!shouldBenchmark) continue;
if (THREADS.stream().noneMatch(name::startsWith)) continue;
final long id = threadInfo2.getThreadId();