mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-25 09:23:52 -07:00
@@ -19,7 +19,7 @@
|
||||
@@ -52,6 +54,7 @@
|
||||
}
|
||||
|
||||
public void a(String s) {
|
||||
public void enter(String s) {
|
||||
+ if (!ENABLED) return; // CraftBukkit
|
||||
if (this.d) {
|
||||
if (!this.e.isEmpty()) {
|
||||
@@ -30,14 +30,14 @@
|
||||
public void a(Supplier<String> supplier) {
|
||||
+ if (!ENABLED) return; // CraftBukkit
|
||||
if (this.d) {
|
||||
this.a((String) supplier.get());
|
||||
this.enter((String) supplier.get());
|
||||
}
|
||||
}
|
||||
|
||||
public void e() {
|
||||
public void exit() {
|
||||
+ if (!ENABLED) return; // CraftBukkit
|
||||
if (this.d && !this.c.isEmpty()) {
|
||||
long i = SystemUtils.c();
|
||||
long i = SystemUtils.getMonotonicNanos();
|
||||
long j = (Long) this.c.remove(this.c.size() - 1);
|
||||
@@ -92,6 +97,7 @@
|
||||
}
|
||||
@@ -50,10 +50,10 @@
|
||||
@@ -154,11 +160,13 @@
|
||||
}
|
||||
|
||||
public void c(String s) {
|
||||
public void exitEnter(String s) {
|
||||
+ if (!ENABLED) return; // CraftBukkit
|
||||
this.e();
|
||||
this.a(s);
|
||||
this.exit();
|
||||
this.enter(s);
|
||||
}
|
||||
|
||||
public String f() {
|
||||
@@ -61,12 +61,3 @@
|
||||
return this.b.isEmpty() ? "[UNKNOWN]" : (String) this.b.get(this.b.size() - 1);
|
||||
}
|
||||
|
||||
@@ -178,7 +186,7 @@
|
||||
return methodprofiler_profilerinfo.a < this.a ? -1 : (methodprofiler_profilerinfo.a > this.a ? 1 : methodprofiler_profilerinfo.c.compareTo(this.c));
|
||||
}
|
||||
|
||||
- public int compareTo(Object object) {
|
||||
+ public int compareTo(MethodProfiler.ProfilerInfo object) { // CraftBukkit: decompile error
|
||||
return this.a((MethodProfiler.ProfilerInfo) object);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user