public class ProfileResultImpl extends Object implements ProfileResult
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ProfileResultImpl.CounterInfo |
Modifier and Type | Field and Description |
---|---|
private static Comparator<Map.Entry<String,ProfileResultImpl.CounterInfo>> |
COMPARATOR |
private static ProfileLocationInfo |
EMPTY_INFO |
private int |
endTick |
private long |
endTime |
private Map<String,? extends ProfileLocationInfo> |
locationInfos |
private static Logger |
LOGGER |
private static Splitter |
SPLITTER |
private int |
startTick |
private long |
startTime |
private int |
tickDuration |
Constructor and Description |
---|
ProfileResultImpl(Map<String,? extends ProfileLocationInfo> locationInfos,
long startTime,
int startTick,
long endTime,
int endTick) |
Modifier and Type | Method and Description |
---|---|
private void |
appendCounter(int depth,
String name,
ProfileResultImpl.CounterInfo info,
int tickSpan,
StringBuilder sb) |
private void |
appendCounterDump(Map<String,ProfileResultImpl.CounterInfo> counters,
StringBuilder sb,
int tickSpan) |
private void |
appendTiming(int level,
String name,
StringBuilder sb) |
protected String |
asString(long timeSpan,
int tickSpan) |
private static String |
generateWittyComment() |
int |
getEndTick() |
long |
getEndTime() |
private ProfileLocationInfo |
getInfo(String path) |
int |
getStartTick() |
long |
getStartTime() |
int |
getTickSpan() |
List<ProfilerTiming> |
getTimings(String parentPath) |
private static StringBuilder |
indent(StringBuilder sb,
int size) |
private static boolean |
isSubpath(String parent,
String path) |
boolean |
save(File file) |
private Map<String,ProfileResultImpl.CounterInfo> |
setupCounters() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHumanReadableName, getTimeSpan
private static final Logger LOGGER
private static final ProfileLocationInfo EMPTY_INFO
private static final Splitter SPLITTER
private static final Comparator<Map.Entry<String,ProfileResultImpl.CounterInfo>> COMPARATOR
private final Map<String,? extends ProfileLocationInfo> locationInfos
private final long startTime
private final int startTick
private final long endTime
private final int endTick
private final int tickDuration
public ProfileResultImpl(Map<String,? extends ProfileLocationInfo> locationInfos, long startTime, int startTick, long endTime, int endTick)
private ProfileLocationInfo getInfo(String path)
public List<ProfilerTiming> getTimings(String parentPath)
getTimings
in interface ProfileResult
private Map<String,ProfileResultImpl.CounterInfo> setupCounters()
public long getStartTime()
getStartTime
in interface ProfileResult
public int getStartTick()
getStartTick
in interface ProfileResult
public long getEndTime()
getEndTime
in interface ProfileResult
public int getEndTick()
getEndTick
in interface ProfileResult
public boolean save(File file)
save
in interface ProfileResult
protected String asString(long timeSpan, int tickSpan)
private static StringBuilder indent(StringBuilder sb, int size)
private void appendTiming(int level, String name, StringBuilder sb)
private void appendCounter(int depth, String name, ProfileResultImpl.CounterInfo info, int tickSpan, StringBuilder sb)
private void appendCounterDump(Map<String,ProfileResultImpl.CounterInfo> counters, StringBuilder sb, int tickSpan)
private static String generateWittyComment()
public int getTickSpan()
getTickSpan
in interface ProfileResult