public abstract class ProfileSegment
extends java.lang.Object
implements org.json.simple.JSONStreamAware
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ConcurrentMap<ProfiledMethod,ProfileSegment> |
children |
protected ProfiledMethod |
method |
| Constructor and Description |
|---|
ProfileSegment(ProfiledMethod method) |
| Modifier and Type | Method and Description |
|---|---|
<P extends ProfileSegment> |
addChild(ProfiledMethod method)
Add a child segment to this segment if it doesn't already exist.
|
protected abstract <P extends ProfileSegment> |
createProfileSegment(ProfiledMethod method) |
abstract int |
getCallCount(ProfiledMethod method) |
abstract int |
getCallSiteCount() |
java.util.Collection<ProfileSegment> |
getChildren() |
ProfiledMethod |
getMethod() |
java.util.Set<ProfiledMethod> |
getMethods() |
protected abstract int |
getRunnableCallCount() |
abstract void |
incrementCallCount(boolean runnable) |
protected void |
removeChild(ProfiledMethod method)
Remove a child segment from this segment.
|
protected final ProfiledMethod method
protected final java.util.concurrent.ConcurrentMap<ProfiledMethod,ProfileSegment> children
public ProfileSegment(ProfiledMethod method)
public final java.util.Set<ProfiledMethod> getMethods()
public final java.util.Collection<ProfileSegment> getChildren()
public final ProfiledMethod getMethod()
protected final void removeChild(ProfiledMethod method)
method - the ProfiledMethod for the childpublic final <P extends ProfileSegment> P addChild(ProfiledMethod method)
method - the ProfiledMethod for the childProfileSegment for the childprotected abstract <P extends ProfileSegment> P createProfileSegment(ProfiledMethod method)
public abstract int getCallCount(ProfiledMethod method)
public abstract int getCallSiteCount()
public abstract void incrementCallCount(boolean runnable)
protected abstract int getRunnableCallCount()