Package net.minecraft.profiler
Class Profiler
java.lang.Object
net.minecraft.profiler.Profiler
- All Implemented Interfaces:
IProfiler,IResultableProfiler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Profiler.Sectionprivate final Map<String,Profiler.Section> private final LongSupplierprivate final IntSupplierprivate static final org.apache.logging.log4j.Loggerprivate Stringprivate booleanprivate final longprivate final it.unimi.dsi.fastutil.longs.LongListprivate final intprivate final booleanprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionProfiler(LongSupplier p_i231482_1_, IntSupplier p_i231482_2_, boolean p_i231482_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()private Profiler.SectionvoidincrementCounter(String p_230035_1_) voidincrementCounter(Supplier<String> p_230036_1_) voidpop()voidvoidvoidvoidvoid
-
Field Details
-
WARNING_TIME_NANOS
private static final long WARNING_TIME_NANOS -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
paths
-
startTimes
private final it.unimi.dsi.fastutil.longs.LongList startTimes -
entries
-
getTickTime
-
getRealTime
-
startTimeNano
private final long startTimeNano -
startTimeTicks
private final int startTimeTicks -
path
-
started
private boolean started -
currentEntry
-
warn
private final boolean warn
-
-
Constructor Details
-
Profiler
-
-
Method Details
-
startTick
public void startTick() -
endTick
public void endTick() -
push
-
push
-
pop
public void pop() -
popPush
-
popPush
-
getCurrentEntry
-
incrementCounter
- Specified by:
incrementCounterin interfaceIProfiler
-
incrementCounter
- Specified by:
incrementCounterin interfaceIProfiler
-
getResults
- Specified by:
getResultsin interfaceIResultableProfiler
-