Class FilledProfileResults
java.lang.Object
net.minecraft.util.profiling.FilledProfileResults
- All Implemented Interfaces:
ProfileResults
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<Map.Entry<String, FilledProfileResults.CounterCollector>> private static final ProfilerPathEntryprivate final longprivate final intprivate final Map<String, ? extends ProfilerPathEntry> private static final org.slf4j.Loggerprivate static final Splitterprivate final longprivate final intprivate final intFields inherited from interface ProfileResults
PATH_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionFilledProfileResults(Map<String, ? extends ProfilerPathEntry> entries, long startTimeNano, int startTimeTicks, long endTimeNano, int endTimeTicks) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendCounterResults(int depth, String name, FilledProfileResults.CounterCollector result, int tickspan, StringBuilder builder) private voidappendCounters(Map<String, FilledProfileResults.CounterCollector> counters, StringBuilder builder, int tickspan) private voidappendProfilerResults(int depth, String path, StringBuilder builder) private Map<String, FilledProfileResults.CounterCollector> longintprivate ProfilerPathEntryprotected StringgetProfilerResults(long timespan, int tickspan) longintintprivate static StringBuilderindentLine(StringBuilder builder, int depth) private static booleanisDirectChild(String path, String test) booleansaveResults(Path file) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProfileResults
getNanoDuration
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY
-
SPLITTER
-
COUNTER_ENTRY_COMPARATOR
private static final Comparator<Map.Entry<String, FilledProfileResults.CounterCollector>> COUNTER_ENTRY_COMPARATOR -
entries
-
startTimeNano
private final long startTimeNano -
startTimeTicks
private final int startTimeTicks -
endTimeNano
private final long endTimeNano -
endTimeTicks
private final int endTimeTicks -
tickDuration
private final int tickDuration
-
-
Constructor Details
-
FilledProfileResults
public FilledProfileResults(Map<String, ? extends ProfilerPathEntry> entries, long startTimeNano, int startTimeTicks, long endTimeNano, int endTimeTicks)
-
-
Method Details
-
getEntry
-
getTimes
- Specified by:
getTimesin interfaceProfileResults
-
isDirectChild
-
getCounterValues
-
getStartTimeNano
public long getStartTimeNano()- Specified by:
getStartTimeNanoin interfaceProfileResults
-
getStartTimeTicks
public int getStartTimeTicks()- Specified by:
getStartTimeTicksin interfaceProfileResults
-
getEndTimeNano
public long getEndTimeNano()- Specified by:
getEndTimeNanoin interfaceProfileResults
-
getEndTimeTicks
public int getEndTimeTicks()- Specified by:
getEndTimeTicksin interfaceProfileResults
-
saveResults
- Specified by:
saveResultsin interfaceProfileResults
-
getProfilerResults
-
getProfilerResults
- Specified by:
getProfilerResultsin interfaceProfileResults
-
indentLine
-
appendProfilerResults
-
appendCounterResults
private void appendCounterResults(int depth, String name, FilledProfileResults.CounterCollector result, int tickspan, StringBuilder builder) -
appendCounters
private void appendCounters(Map<String, FilledProfileResults.CounterCollector> counters, StringBuilder builder, int tickspan) -
getTickDuration
public int getTickDuration()- Specified by:
getTickDurationin interfaceProfileResults
-