public class ProfileData extends Object implements ProfileCollection
ProfilingDynamicMethod| 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) |
Invocation |
getCurrentInvocation() |
ThreadContext |
getThreadContext() |
Invocation |
getTopInvocation() |
protected int |
incRecursionFor(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.
|
long |
totalTime() |
public ProfileData(ThreadContext tc)
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()
protected void decRecursionFor(int serial)
protected int incRecursionFor(int serial)
Copyright © 2001–2024 JRuby. All rights reserved.