Package org.jruby.runtime.profile
Interface ProfileCollection
- All Known Implementing Classes:
ProfileData
public interface ProfileCollection
Each
ThreadContext
has an ProfileCollection property in profile mode.
The methods of this class will be called by jruby.- Author:
- Andre Kullmann
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Method Details
-
profileEnter
void profileEnter(long calledMethod) Begin profiling a new method, aggregating the current time diff in the previous method's profile slot.- Parameters:
calledMethod
- the serial number of the next method to profile
-
profileExit
void profileExit(long callingMethod, long startTime) Fall back to previously profiled method after current method has returned.- Parameters:
callingMethod
- the serial number of the next method to profilestartTime
- the nano timestamp at which the given callingMethod was entered
-