Package net.minecraft.util.profiling
Class ActiveProfiler
java.lang.Object
net.minecraft.util.profiling.ActiveProfiler
- All Implemented Interfaces:
ProfileCollector
,ProfilerFiller
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Set<org.apache.commons.lang3.tuple.Pair<String,MetricCategory>>
private ActiveProfiler.PathEntry
private Map<String,ActiveProfiler.PathEntry>
private LongSupplier
private IntSupplier
private static org.apache.logging.log4j.Logger
private String
private boolean
private long
private it.unimi.dsi.fastutil.longs.LongList
private int
private boolean
private static long
Fields inherited from interface net.minecraft.util.profiling.ProfilerFiller
ROOT
-
Constructor Summary
ConstructorDescriptionActiveProfiler(LongSupplier p_18383_, IntSupplier p_18384_, boolean p_18385_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endTick()
Set<org.apache.commons.lang3.tuple.Pair<String,MetricCategory>>
private ActiveProfiler.PathEntry
void
incrementCounter(String p_18400_)
void
incrementCounter(Supplier<String> p_18402_)
void
markForCharting(MetricCategory p_145928_)
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 -
chartedPaths
-
-
Constructor Details
-
ActiveProfiler
-
-
Method Details
-
startTick
public void startTick()- Specified by:
startTick
in interfaceProfilerFiller
-
endTick
public void endTick()- Specified by:
endTick
in interfaceProfilerFiller
-
push
- Specified by:
push
in interfaceProfilerFiller
-
push
- Specified by:
push
in interfaceProfilerFiller
-
markForCharting
- Specified by:
markForCharting
in interfaceProfilerFiller
-
pop
public void pop()- Specified by:
pop
in interfaceProfilerFiller
-
popPush
- Specified by:
popPush
in interfaceProfilerFiller
-
popPush
- Specified by:
popPush
in interfaceProfilerFiller
-
getCurrentEntry
-
incrementCounter
- Specified by:
incrementCounter
in interfaceProfilerFiller
-
incrementCounter
- Specified by:
incrementCounter
in interfaceProfilerFiller
-
getResults
- Specified by:
getResults
in interfaceProfileCollector
-
getEntry
- Specified by:
getEntry
in interfaceProfileCollector
-
getChartedPaths
- Specified by:
getChartedPaths
in interfaceProfileCollector
-