Package net.minecraft.util.profiling
Class ActiveProfiler
java.lang.Object
net.minecraft.util.profiling.ActiveProfiler
- All Implemented Interfaces:
ProfileCollector,ProfilerFiller
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.util.profiling.ProfilerFiller
ProfilerFiller.CombinedProfileFiller -
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 BooleanSupplierprivate static final longFields inherited from interface net.minecraft.util.profiling.ProfilerFiller
ROOT -
Constructor Summary
ConstructorsConstructorDescriptionActiveProfiler(LongSupplier pGetRealTime, IntSupplier pGetTickTime, BooleanSupplier pSuppressWarnings) -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()Set<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntryvoidincrementCounter(String pCounterName, int pIncrement) voidincrementCounter(Supplier<String> pCounterNameSupplier, int pIncrement) voidmarkForCharting(MetricCategory pCategory) voidpop()voidvoidvoidStart sectionvoidvoidMethods 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
addZoneText, addZoneValue, incrementCounter, incrementCounter, setZoneColor, zone, zone
-
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
-
suppressWarnings
-
chartedPaths
-
-
Constructor Details
-
ActiveProfiler
public ActiveProfiler(LongSupplier pGetRealTime, IntSupplier pGetTickTime, BooleanSupplier pSuppressWarnings)
-
-
Method Details
-
startTick
public void startTick()- Specified by:
startTickin interfaceProfilerFiller
-
endTick
public void endTick()- Specified by:
endTickin interfaceProfilerFiller
-
push
Start section- 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
-