Package net.minecraft.util.profiling
Class ActiveProfiler
java.lang.Object
net.minecraft.util.profiling.ActiveProfiler
- All Implemented Interfaces:
ProfileCollector,ProfilerFiller
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntryprivate final Map<String, ActiveProfiler.PathEntry> private final LongSupplierprivate final IntSupplierprivate static final org.slf4j.Loggerprivate Stringprivate booleanprivate final longprivate final it.unimi.dsi.fastutil.longs.LongListprivate final intprivate final booleanprivate static final longFields inherited from interface net.minecraft.util.profiling.ProfilerFiller
ROOT -
Constructor Summary
ConstructorsConstructorDescriptionActiveProfiler(LongSupplier p_18383_, IntSupplier p_18384_, boolean p_18385_) -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()Set<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntryvoidincrementCounter(String p_185247_, int p_185248_) voidincrementCounter(Supplier<String> p_185250_, int p_185251_) voidmarkForCharting(MetricCategory p_145928_) voidpop()voidvoidvoidvoidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startTickin interfaceProfilerFiller
-
endTick
public void endTick()- Specified by:
endTickin interfaceProfilerFiller
-
push
- Specified by:
pushin interfaceProfilerFiller
-
push
- Specified by:
pushin interfaceProfilerFiller
-
markForCharting
- Specified by:
markForChartingin interfaceProfilerFiller
-
pop
public void pop()- Specified by:
popin interfaceProfilerFiller
-
popPush
- Specified by:
popPushin interfaceProfilerFiller
-
popPush
- Specified by:
popPushin interfaceProfilerFiller
-
getCurrentEntry
-
incrementCounter
- Specified by:
incrementCounterin interfaceProfilerFiller
-
incrementCounter
- Specified by:
incrementCounterin interfaceProfilerFiller
-
getResults
- Specified by:
getResultsin interfaceProfileCollector
-
getEntry
- Specified by:
getEntryin interfaceProfileCollector
-
getChartedPaths
- Specified by:
getChartedPathsin interfaceProfileCollector
-