public class SimpleProfileSegment extends ProfileSegment
children, method
Modifier and Type | Method and Description |
---|---|
protected SimpleProfileSegment |
createProfileSegment(ProfiledMethod method) |
int |
getCallCount(ProfiledMethod method) |
int |
getCallSiteCount()
Get the number of profile segments from this segment down
|
protected int |
getRunnableCallCount()
Returns the number of times this segment has appeared in the profile thread samples.
|
void |
incrementCallCount(boolean runnable) |
static SimpleProfileSegment |
newProfileSegment(ProfiledMethod method)
Create a new ProfileSegment from a
ProfiledMethod |
java.lang.String |
toString() |
void |
writeJSONString(java.io.Writer out) |
addChild, getChildren, getMethod, getMethods, removeChild
public static SimpleProfileSegment newProfileSegment(ProfiledMethod method)
ProfiledMethod
method
- the execution pointprotected SimpleProfileSegment createProfileSegment(ProfiledMethod method)
createProfileSegment
in class ProfileSegment
public void writeJSONString(java.io.Writer out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
protected int getRunnableCallCount()
getRunnableCallCount
in class ProfileSegment
public void incrementCallCount(boolean runnable)
incrementCallCount
in class ProfileSegment
public int getCallSiteCount()
getCallSiteCount
in class ProfileSegment
public int getCallCount(ProfiledMethod method)
getCallCount
in class ProfileSegment