public class ProfileData extends java.lang.Object implements ProfileCollection
ProfilingDynamicMethod| Modifier and Type | Field and Description |
|---|---|
private Invocation |
currentInvocation |
private int[] |
methodRecursion |
private ThreadContext |
threadContext |
private Invocation |
topInvocation |
| Constructor and Description |
|---|
ProfileData(ThreadContext tc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the gathered profiling (invocation) data.
|
Invocation |
computeResults()
Compute the profiling results from gathered data.
|
protected void |
decRecursionFor(int serial) |
private void |
ensureRecursionSize(int index) |
Invocation |
getCurrentInvocation() |
private ProfiledMethod |
getProfiledMethod(long serial) |
ThreadContext |
getThreadContext() |
Invocation |
getTopInvocation() |
protected int |
incRecursionFor(int serial) |
(package private) java.lang.String |
methodName(int serial) |
void |
profileEnter(long calledMethod)
Begin profiling a new method, aggregating the current time diff in the previous
method's profile slot.
|
void |
profileExit(long callingMethod,
long startTime)
Fall back to previously profiled method after current method has returned.
|
private static Invocation |
setDuration(Invocation inv) |
private void |
setRecursiveDepths() |
private void |
setRecursiveDepths1(Invocation inv) |
long |
totalTime() |
private Invocation currentInvocation
private Invocation topInvocation
private int[] methodRecursion
private final ThreadContext threadContext
public ProfileData(ThreadContext tc)
private ProfiledMethod getProfiledMethod(long serial)
public void profileEnter(long calledMethod)
profileEnter in interface ProfileCollectioncalledMethod - the serial number of the next method to profilepublic void profileExit(long callingMethod,
long startTime)
profileExit in interface ProfileCollectioncallingMethod - the serial number of the next method to profilestartTime - the nano timestamp at which the given callingMethod was enteredpublic void clear()
public long totalTime()
public Invocation getTopInvocation()
public Invocation getCurrentInvocation()
public ThreadContext getThreadContext()
public Invocation computeResults()
private static Invocation setDuration(Invocation inv)
protected void decRecursionFor(int serial)
protected int incRecursionFor(int serial)
private void ensureRecursionSize(int index)
private void setRecursiveDepths()
private void setRecursiveDepths1(Invocation inv)
java.lang.String methodName(int serial)