org.jruby.internal.runtime.methods.ProfilingDynamicMethod
| Modifier and Type | Field and Description |
|---|---|
| private Invocation | |
| private int[] | |
| private final ProfiledMethods | |
| private final ThreadContext | |
| private Invocation |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Invocation | |
| protected void | |
| private void | |
| public Invocation | |
| private ProfiledMethod | |
| public ThreadContext | |
| public Invocation | |
| protected int | |
| public String | |
| public void | profileEnter(final long
the serial number of the next method to profile calledMethod)Implements org. Begin profiling a new method, aggregating the current time diff in the previous method's profile slot. |
| public void | profileExit(final long
the serial number of the next method to profile callingMethod, final long the nano timestamp at which the given callingMethod was entered startTime)Implements org. Fall back to previously profiled method after current method has returned. |
| private static Invocation | |
| private void | |
| private void | |
| public long |
| currentInvocation | back to summary |
|---|---|
| private Invocation currentInvocation | |
| methodRecursion | back to summary |
|---|---|
| private int[] methodRecursion | |
| profiledMethods | back to summary |
|---|---|
| private final ProfiledMethods profiledMethods | |
| threadContext | back to summary |
|---|---|
| private final ThreadContext threadContext | |
| topInvocation | back to summary |
|---|---|
| private Invocation topInvocation | |
| ProfileData | back to summary |
|---|---|
| public ProfileData(ThreadContext context, ProfiledMethods profiledMethods) | |
| clear | back to summary |
|---|---|
| public void clear() Clear the gathered profiling (invocation) data. | |
| computeResults | back to summary |
|---|---|
| public Invocation computeResults() Compute the profiling results from gathered data.
| |
| decRecursionFor | back to summary |
|---|---|
| protected void decRecursionFor(int serial) | |
| ensureRecursionSize | back to summary |
|---|---|
| private void ensureRecursionSize(int index) | |
| getCurrentInvocation | back to summary |
|---|---|
public Invocation getCurrentInvocation()
| |
| getProfiledMethod | back to summary |
|---|---|
| private ProfiledMethod getProfiledMethod(final long serial) | |
| getThreadContext | back to summary |
|---|---|
public ThreadContext getThreadContext()
| |
| getTopInvocation | back to summary |
|---|---|
public Invocation getTopInvocation()
| |
| incRecursionFor | back to summary |
|---|---|
| protected int incRecursionFor(int serial) | |
| methodName | back to summary |
|---|---|
| public String methodName(final int serial) | |
| profileEnter | back to summary |
|---|---|
| public void profileEnter(final long calledMethod) Implements org. Begin profiling a new method, aggregating the current time diff in the previous method's profile slot.
| |
| profileExit | back to summary |
|---|---|
| public void profileExit(final long callingMethod, final long startTime) Implements org. Fall back to previously profiled method after current method has returned.
| |
| setDuration | back to summary |
|---|---|
| private static Invocation setDuration(Invocation inv) | |
| setRecursiveDepths | back to summary |
|---|---|
| private void setRecursiveDepths() | |
| setRecursiveDepths1 | back to summary |
|---|---|
| private void setRecursiveDepths1(Invocation inv) | |
| totalTime | back to summary |
|---|---|
| public long totalTime() | |