public class ProfileSegment
extends java.lang.Object
implements org.json.simple.JSONStreamAware
| Modifier and Type | Method and Description |
|---|---|
int |
getCallCount(ProfiledMethod method) |
int |
getCallSiteCount()
Get the number of profile segments from this segment down
|
ProfiledMethod |
getMethod() |
java.util.Set<ProfiledMethod> |
getMethods() |
protected int |
getRunnableCallCount()
Returns the number of times this segment has appeared in the profile thread samples.
|
void |
incrementNonRunnableCallCount() |
void |
incrementRunnableCallCount() |
static ProfileSegment |
newProfileSegment(ProfiledMethod method)
Create a new ProfileSegment from a
ProfiledMethod |
java.lang.String |
toString() |
void |
writeJSONString(java.io.Writer out) |
public static ProfileSegment newProfileSegment(ProfiledMethod method)
ProfiledMethodmethod - the execution pointpublic void writeJSONString(java.io.Writer out)
throws java.io.IOException
writeJSONString in interface org.json.simple.JSONStreamAwarejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic ProfiledMethod getMethod()
protected int getRunnableCallCount()
public void incrementRunnableCallCount()
public void incrementNonRunnableCallCount()
public int getCallSiteCount()
public int getCallCount(ProfiledMethod method)
public java.util.Set<ProfiledMethod> getMethods()