mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +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) {
|
for (ThreadInfo threadInfo2 : threadInfo) {
|
||||||
if (threadInfo2 == null) continue; // Can happen if the thread does not exist
|
if (threadInfo2 == null) continue; // Can happen if the thread does not exist
|
||||||
final String name = threadInfo2.getThreadName();
|
final String name = threadInfo2.getThreadName();
|
||||||
final boolean shouldBenchmark = THREADS.stream().anyMatch(name::startsWith);
|
if (THREADS.stream().noneMatch(name::startsWith)) continue;
|
||||||
if (!shouldBenchmark) continue;
|
|
||||||
|
|
||||||
final long id = threadInfo2.getThreadId();
|
final long id = threadInfo2.getThreadId();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user