Package net.minecraft.util.profiler
Class ProfileResultImpl
java.lang.Object
net.minecraft.util.profiler.ProfileResultImpl
- All Implemented Interfaces:
ProfileResult
public class ProfileResultImpl extends Object implements ProfileResult
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classProfileResultImpl.CounterInfo -
Field Summary
Fields Modifier and Type Field Description private static Comparator<Map.Entry<String,ProfileResultImpl.CounterInfo>>COMPARATORprivate static ProfileLocationInfoEMPTY_INFOprivate intendTickprivate longendTimeprivate Map<String,? extends ProfileLocationInfo>locationInfosprivate static LoggerLOGGERprivate static SplitterSPLITTERprivate intstartTickprivate longstartTimeprivate inttickDuration -
Constructor Summary
Constructors Constructor Description ProfileResultImpl(Map<String,? extends ProfileLocationInfo> locationInfos, long startTime, int startTick, long endTime, int endTick) -
Method Summary
Modifier and Type Method Description private voidappendCounter(int depth, String name, ProfileResultImpl.CounterInfo info, int tickSpan, StringBuilder sb)private voidappendCounterDump(Map<String,ProfileResultImpl.CounterInfo> counters, StringBuilder sb, int tickSpan)private voidappendTiming(int level, String name, StringBuilder sb)protected StringasString(long timeSpan, int tickSpan)private static StringgenerateWittyComment()intgetEndTick()longgetEndTime()private ProfileLocationInfogetInfo(String path)intgetStartTick()longgetStartTime()intgetTickSpan()List<ProfilerTiming>getTimings(String parentPath)private static StringBuilderindent(StringBuilder sb, int size)private static booleanisSubpath(String parent, String path)booleansave(File file)private Map<String,ProfileResultImpl.CounterInfo>setupCounters()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.profiler.ProfileResult
getTimeSpan
-
Field Details
-
LOGGER
-
EMPTY_INFO
-
SPLITTER
-
COMPARATOR
-
locationInfos
-
startTime
private final long startTime -
startTick
private final int startTick -
endTime
private final long endTime -
endTick
private final int endTick -
tickDuration
private final int tickDuration
-
-
Constructor Details
-
ProfileResultImpl
public ProfileResultImpl(Map<String,? extends ProfileLocationInfo> locationInfos, long startTime, int startTick, long endTime, int endTick)
-
-
Method Details
-
getInfo
-
getTimings
- Specified by:
getTimingsin interfaceProfileResult
-
isSubpath
-
setupCounters
-
getStartTime
public long getStartTime()- Specified by:
getStartTimein interfaceProfileResult
-
getStartTick
public int getStartTick()- Specified by:
getStartTickin interfaceProfileResult
-
getEndTime
public long getEndTime()- Specified by:
getEndTimein interfaceProfileResult
-
getEndTick
public int getEndTick()- Specified by:
getEndTickin interfaceProfileResult
-
save
- Specified by:
savein interfaceProfileResult
-
asString
-
indent
-
appendTiming
-
appendCounter
private void appendCounter(int depth, String name, ProfileResultImpl.CounterInfo info, int tickSpan, StringBuilder sb) -
appendCounterDump
private void appendCounterDump(Map<String,ProfileResultImpl.CounterInfo> counters, StringBuilder sb, int tickSpan) -
generateWittyComment
-
getTickSpan
public int getTickSpan()- Specified by:
getTickSpanin interfaceProfileResult
-