Package net.minecraft.profiler
Class Profiler
java.lang.Object
net.minecraft.profiler.Profiler
- All Implemented Interfaces:
IProfiler
,IResultableProfiler
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Profiler.Section
private final Map<String,
Profiler.Section> private final LongSupplier
private final IntSupplier
private static final org.apache.logging.log4j.Logger
private String
private boolean
private final long
private final it.unimi.dsi.fastutil.longs.LongList
private final int
private final boolean
private static final long
-
Constructor Summary
ConstructorDescriptionProfiler
(LongSupplier p_i231482_1_, IntSupplier p_i231482_2_, boolean p_i231482_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
endTick()
private Profiler.Section
void
incrementCounter
(String p_230035_1_) void
incrementCounter
(Supplier<String> p_230036_1_) void
pop()
void
void
void
void
void
-
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:
incrementCounter
in interfaceIProfiler
-
incrementCounter
- Specified by:
incrementCounter
in interfaceIProfiler
-
getResults
- Specified by:
getResults
in interfaceIResultableProfiler
-