Package net.minecraft.profiler
Class FilledProfileResult
- java.lang.Object
-
- net.minecraft.profiler.FilledProfileResult
-
- All Implemented Interfaces:
IProfileResult
public class FilledProfileResult extends java.lang.Object implements IProfileResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FilledProfileResult.Section
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<java.util.Map.Entry<java.lang.String,FilledProfileResult.Section>>
COUNTER_ENTRY_COMPARATOR
private static IProfilerSection
EMPTY
private long
endTimeNano
private int
endTimeTicks
private java.util.Map<java.lang.String,? extends IProfilerSection>
entries
private static org.apache.logging.log4j.Logger
LOGGER
private static com.google.common.base.Splitter
SPLITTER
private long
startTimeNano
private int
startTimeTicks
private int
tickDuration
-
Constructor Summary
Constructors Constructor Description FilledProfileResult(java.util.Map<java.lang.String,? extends IProfilerSection> p_i50407_1_, long p_i50407_2_, int p_i50407_4_, long p_i50407_5_, int p_i50407_7_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendCounterResults(int p_230095_1_, java.lang.String p_230095_2_, FilledProfileResult.Section p_230095_3_, int p_230095_4_, java.lang.StringBuilder p_230095_5_)
private void
appendCounters(java.util.Map<java.lang.String,FilledProfileResult.Section> p_230102_1_, java.lang.StringBuilder p_230102_2_, int p_230102_3_)
private void
appendProfilerResults(int p_219928_1_, java.lang.String p_219928_2_, java.lang.StringBuilder p_219928_3_)
private static java.lang.String
getComment()
private java.util.Map<java.lang.String,FilledProfileResult.Section>
getCounterValues()
long
getEndTimeNano()
int
getEndTimeTicks()
private IProfilerSection
getEntry(java.lang.String p_230104_1_)
protected java.lang.String
getProfilerResults(long p_219929_1_, int p_219929_3_)
long
getStartTimeNano()
int
getStartTimeTicks()
int
getTickDuration()
java.util.List<DataPoint>
getTimes(java.lang.String p_219917_1_)
private static java.lang.StringBuilder
indentLine(java.lang.StringBuilder p_230098_0_, int p_230098_1_)
private static boolean
isDirectChild(java.lang.String p_230097_0_, java.lang.String p_230097_1_)
boolean
saveResults(java.io.File p_219919_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.profiler.IProfileResult
getNanoDuration
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
EMPTY
private static final IProfilerSection EMPTY
-
SPLITTER
private static final com.google.common.base.Splitter SPLITTER
-
COUNTER_ENTRY_COMPARATOR
private static final java.util.Comparator<java.util.Map.Entry<java.lang.String,FilledProfileResult.Section>> COUNTER_ENTRY_COMPARATOR
-
entries
private final java.util.Map<java.lang.String,? extends IProfilerSection> 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 Detail
-
FilledProfileResult
public FilledProfileResult(java.util.Map<java.lang.String,? extends IProfilerSection> p_i50407_1_, long p_i50407_2_, int p_i50407_4_, long p_i50407_5_, int p_i50407_7_)
-
-
Method Detail
-
getEntry
private IProfilerSection getEntry(java.lang.String p_230104_1_)
-
getTimes
public java.util.List<DataPoint> getTimes(java.lang.String p_219917_1_)
- Specified by:
getTimes
in interfaceIProfileResult
-
isDirectChild
private static boolean isDirectChild(java.lang.String p_230097_0_, java.lang.String p_230097_1_)
-
getCounterValues
private java.util.Map<java.lang.String,FilledProfileResult.Section> getCounterValues()
-
getStartTimeNano
public long getStartTimeNano()
- Specified by:
getStartTimeNano
in interfaceIProfileResult
-
getStartTimeTicks
public int getStartTimeTicks()
- Specified by:
getStartTimeTicks
in interfaceIProfileResult
-
getEndTimeNano
public long getEndTimeNano()
- Specified by:
getEndTimeNano
in interfaceIProfileResult
-
getEndTimeTicks
public int getEndTimeTicks()
- Specified by:
getEndTimeTicks
in interfaceIProfileResult
-
saveResults
public boolean saveResults(java.io.File p_219919_1_)
- Specified by:
saveResults
in interfaceIProfileResult
-
getProfilerResults
protected java.lang.String getProfilerResults(long p_219929_1_, int p_219929_3_)
-
indentLine
private static java.lang.StringBuilder indentLine(java.lang.StringBuilder p_230098_0_, int p_230098_1_)
-
appendProfilerResults
private void appendProfilerResults(int p_219928_1_, java.lang.String p_219928_2_, java.lang.StringBuilder p_219928_3_)
-
appendCounterResults
private void appendCounterResults(int p_230095_1_, java.lang.String p_230095_2_, FilledProfileResult.Section p_230095_3_, int p_230095_4_, java.lang.StringBuilder p_230095_5_)
-
appendCounters
private void appendCounters(java.util.Map<java.lang.String,FilledProfileResult.Section> p_230102_1_, java.lang.StringBuilder p_230102_2_, int p_230102_3_)
-
getComment
private static java.lang.String getComment()
-
getTickDuration
public int getTickDuration()
- Specified by:
getTickDuration
in interfaceIProfileResult
-
-