jruby/docs BETA
Navigation
org.jruby.runtime.profile 5
I MethodEnhancer
I ProfileCollection
I ProfileReporter
I ProfilingService
C ProfilingServiceLookup
ProfileCollection — members 2
C profile_enter(called_method)
C profile_exit(calling_method, start_time)

org.jruby.runtime.profile.ProfileCollection

interface abstract 2 members

Each ThreadContext has an ProfileCollection property in profile mode. The methods of this class will be called by jruby.

Instance Methods

profile_enter

profile_enter ( long called_method )
Java: profileEnter(long calledMethod)

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

nametypedescription
called_methodlongthe serial number of the next method to profile

profile_exit

profile_exit ( long calling_method, long start_time )
Java: profileExit(long callingMethod, long startTime)

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

nametypedescription
calling_methodlongthe serial number of the next method to profile
start_timelongthe nano timestamp at which the given callingMethod was entered