public class ProfileData extends Object
ProfilingDynamicMethod
Constructor and Description |
---|
ProfileData(ThreadContext tc) |
Modifier and Type | Method and Description |
---|---|
void |
addProfiledMethod(String name,
DynamicMethod method) |
void |
clear()
Clear the gathered profiling (invocation) data.
|
Invocation |
computeResults()
Compute the profiling results from gathered data.
|
protected void |
decRecursionFor(int serial) |
Invocation |
getCurrentInvocation() |
protected ProfiledMethod |
getProfiledMethod(int serial) |
IntHashMap<ProfiledMethod> |
getProfiledMethods() |
ThreadContext |
getThreadContext() |
Invocation |
getTopInvocation() |
protected int |
incRecursionFor(int serial) |
int |
profileEnter(int calledMethod)
Begin profiling a new method, aggregating the current time diff in the previous
method's profile slot.
|
int |
profileExit(int callingMethod,
long startTime)
Fall back to previously profiled method after current method has returned.
|
long |
totalTime() |
public ProfileData(ThreadContext tc)
public IntHashMap<ProfiledMethod> getProfiledMethods()
public void addProfiledMethod(String name, DynamicMethod method)
protected ProfiledMethod getProfiledMethod(int serial)
public int profileEnter(int calledMethod)
nextMethod
- the serial number of the next method to profilepublic int profileExit(int callingMethod, long startTime)
nextMethod
- the serial number of the next method to profilepublic 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-2013 JRuby. All Rights Reserved.