public abstract class BaseTree<S extends ProfileSegment>
extends java.lang.Object
implements org.json.simple.JSONStreamAware
| Modifier | Constructor and Description |
|---|---|
protected |
BaseTree(IProfile profile) |
| Modifier and Type | Method and Description |
|---|---|
protected S |
add(ProfiledMethod method,
S parent,
boolean runnable) |
protected abstract S |
createProfiledMethod(ProfiledMethod method) |
int |
getCallSiteCount()
Returns the number of distinct method invocation nodes in the tree.
|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
getExtraData() |
int |
getMethodCount() |
int |
getRootCount() |
java.util.Collection<S> |
getRootSegments() |
S |
getSegment(ProfiledMethod profiledMethod)
Returns the segment that matches the distinct method invocation
|
void |
writeJSONString(java.io.Writer out) |
protected final IProfile profile
protected BaseTree(IProfile profile)
protected final S add(ProfiledMethod method, S parent, boolean runnable)
protected abstract S createProfiledMethod(ProfiledMethod method)
public final int getCallSiteCount()
public final S getSegment(ProfiledMethod profiledMethod)
profiledMethod - the method invocation to retrievepublic final java.util.Collection<S> getRootSegments()
public final int getRootCount()
public final int getMethodCount()
public void writeJSONString(java.io.Writer out)
throws java.io.IOException
writeJSONString in interface org.json.simple.JSONStreamAwarejava.io.IOExceptionprotected abstract java.util.Map<java.lang.String,java.lang.Object> getExtraData()