public class ProfileData extends java.lang.Object implements IProfileData
Constructor and Description |
---|
ProfileData(ThreadContext tc) |
Modifier and Type | Method and Description |
---|---|
Invocation |
addDuration(Invocation inv) |
void |
clear() |
void |
decRecursionFor(int serial) |
Invocation |
getCurrentInvocation() |
Invocation |
getResults() |
ThreadContext |
getThreadContext() |
Invocation |
getTopInvocation() |
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 int profileEnter(int calledMethod)
profileEnter
in interface IProfileData
nextMethod
- the serial number of the next method to profilepublic int profileExit(int callingMethod, long startTime)
profileExit
in interface IProfileData
nextMethod
- the serial number of the next method to profilepublic void clear()
clear
in interface IProfileData
public void decRecursionFor(int serial)
public int incRecursionFor(int serial)
public long totalTime()
public Invocation getTopInvocation()
public Invocation getResults()
getResults
in interface IProfileData
public Invocation addDuration(Invocation inv)
public Invocation getCurrentInvocation()
public ThreadContext getThreadContext()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.