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 final Set
<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntry
private final Map
<String, ActiveProfiler.PathEntry> private final LongSupplier
private final IntSupplier
private static final org.slf4j.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
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_185247_, int p_185248_) void
incrementCounter
(Supplier<String> p_185250_, int p_185251_) void
markForCharting
(MetricCategory p_145928_) void
pop()
void
void
void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.profiling.ProfilerFiller
incrementCounter, incrementCounter
-
Field Details
-
WARNING_TIME_NANOS
private static final long WARNING_TIME_NANOS -
LOGGER
private static final org.slf4j.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
-