public class ProfileTree
extends java.lang.Object
implements org.json.simple.JSONStreamAware
ThreadType
Constructor and Description |
---|
ProfileTree() |
Modifier and Type | Method and Description |
---|---|
void |
addStackTrace(java.util.List<java.lang.StackTraceElement> stackTraceList,
boolean runnable) |
int |
getCallCount(java.lang.StackTraceElement stackElement)
Return number of calls to given method from all invocations
|
int |
getCallSiteCount()
Returns the number of distinct method invocation nodes in the tree.
|
long |
getCpuTime() |
int |
getMethodCount() |
int |
getRootCount() |
java.util.Collection<ProfileSegment> |
getRootSegments() |
void |
incrementCpuTime(long cpuTime) |
void |
setMethodDetails(java.util.Map<java.lang.String,java.lang.Class<?>> classMap) |
void |
writeJSONString(java.io.Writer out) |
public int getCallCount(java.lang.StackTraceElement stackElement)
stackElement
- public int getCallSiteCount()
public java.util.Collection<ProfileSegment> getRootSegments()
public int getRootCount()
public int getMethodCount()
public void addStackTrace(java.util.List<java.lang.StackTraceElement> stackTraceList, boolean runnable)
public void writeJSONString(java.io.Writer out) throws java.io.IOException
writeJSONString
in interface org.json.simple.JSONStreamAware
java.io.IOException
public void incrementCpuTime(long cpuTime)
public long getCpuTime()
public void setMethodDetails(java.util.Map<java.lang.String,java.lang.Class<?>> classMap)