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 ProfilerFiller
ProfilerFiller.CombinedProfileFiller -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private @Nullable 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 ProfilerFiller
ROOT -
Constructor Summary
ConstructorsConstructorDescriptionActiveProfiler(LongSupplier getRealTime, IntSupplier getTickTime, BooleanSupplier suppressWarnings) -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()Set<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntry@Nullable ActiveProfiler.PathEntryvoidincrementCounter(String name, int amount) voidincrementCounter(Supplier<String> name, int amount) voidmarkForCharting(MetricCategory category) voidpop()voidvoidvoidStart sectionvoidvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 getRealTime, IntSupplier getTickTime, BooleanSupplier suppressWarnings)
-
-
Method Details
-
startTick
public void startTick()- Specified by:
startTickin interfaceProfilerFiller
-
endTick
public void endTick()- Specified by:
endTickin interfaceProfilerFiller
-
push
-
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
-