mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 11:23:52 -07:00
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/MethodProfiler.java
|
||||
+++ b/net/minecraft/server/MethodProfiler.java
|
||||
@@ -13,6 +13,7 @@
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
public class MethodProfiler {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
private static final Logger a = LogManager.getLogger();
|
||||
private final List<String> b = Lists.newArrayList();
|
||||
private final List<Long> c = Lists.newArrayList();
|
||||
@@ -41,6 +42,7 @@
|
||||
@@ -40,6 +41,7 @@
|
||||
}
|
||||
|
||||
public void a(int i) {
|
||||
@@ -16,7 +16,7 @@
|
||||
if (!this.d) {
|
||||
this.d = true;
|
||||
this.f.clear();
|
||||
@@ -52,6 +54,7 @@
|
||||
@@ -51,6 +53,7 @@
|
||||
}
|
||||
|
||||
public void enter(String s) {
|
||||
@@ -24,7 +24,7 @@
|
||||
if (this.d) {
|
||||
if (!this.e.isEmpty()) {
|
||||
this.e = this.e + ".";
|
||||
@@ -64,12 +67,14 @@
|
||||
@@ -63,12 +66,14 @@
|
||||
}
|
||||
|
||||
public void a(Supplier<String> supplier) {
|
||||
@@ -39,15 +39,15 @@
|
||||
if (this.d && !this.c.isEmpty()) {
|
||||
long i = SystemUtils.getMonotonicNanos();
|
||||
long j = (Long) this.c.remove(this.c.size() - 1);
|
||||
@@ -92,6 +97,7 @@
|
||||
@@ -91,6 +96,7 @@
|
||||
}
|
||||
|
||||
public List<MethodProfiler.ProfilerInfo> b(String s) {
|
||||
+ if (!ENABLED) return Collections.emptyList(); // CraftBukkit
|
||||
long i = this.f.containsKey("root") ? (Long) this.f.get("root") : 0L;
|
||||
long j = this.f.containsKey(s) ? (Long) this.f.get(s) : -1L;
|
||||
ArrayList arraylist = Lists.newArrayList();
|
||||
@@ -154,11 +160,13 @@
|
||||
List<MethodProfiler.ProfilerInfo> list = Lists.newArrayList();
|
||||
@@ -153,11 +159,13 @@
|
||||
}
|
||||
|
||||
public void exitEnter(String s) {
|
||||
|
Reference in New Issue
Block a user