Top Description Methods
org.jruby.runtime.profile

public Interface ProfileCollection

Known Direct Implementers
org.jruby.runtime.profile.builtin.ProfileData

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 TypeMethod and Description
public void
profileEnter(long
the serial number of the next method to profile
calledMethod
)

Begin profiling a new method, aggregating the current time diff in the previous method's profile slot.

public void
profileExit(long
the serial number of the next method to profile
callingMethod
,
long
the nano timestamp at which the given callingMethod was entered
startTime
)

Fall back to previously profiled method after current method has returned.

Method Detail

profileEnterback to summary
public void profileEnter(long calledMethod)

Begin profiling a new method, aggregating the current time diff in the previous method's profile slot.

Parameters
calledMethod:long

the serial number of the next method to profile

profileExitback to summary
public void profileExit(long callingMethod, long startTime)

Fall back to previously profiled method after current method has returned.

Parameters
callingMethod:long

the serial number of the next method to profile

startTime:long

the nano timestamp at which the given callingMethod was entered