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.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
ConstructorsConstructorDescriptionActiveProfiler
(LongSupplier pStartTimeNano, IntSupplier pStartTimeTicks, boolean pWarn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
endTick()
Set
<org.apache.commons.lang3.tuple.Pair<String, MetricCategory>> private ActiveProfiler.PathEntry
void
incrementCounter
(String pCounterName, int pIncrement) void
incrementCounter
(Supplier<String> pCounterNameSupplier, int pIncrement) void
markForCharting
(MetricCategory pCategory) void
pop()
void
void
void
Start sectionvoid
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
Start section- 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
-