mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Inline shouldBenchmark
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
cbc87a2a68
commit
82a68cbfad
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user