public class BuiltinProfilingService extends java.lang.Object implements ProfilingService
ProfilingService
will be used for all profiling methods
which are shipped with jruby.Constructor and Description |
---|
BuiltinProfilingService(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
void |
addProfiledMethod(java.lang.String id,
DynamicMethod method)
Add a named method to the profiling service to be monitored.
|
org.jruby.runtime.profile.builtin.BuiltinProfilingService.DefaultMethodEnhancer |
newMethodEnhancer(Ruby runtime) |
ProfileData |
newProfileCollection(ThreadContext context) |
org.jruby.runtime.profile.builtin.BuiltinProfilingService.DefaultProfileReporter |
newProfileReporter(ThreadContext context) |
public BuiltinProfilingService(Ruby runtime)
public ProfileData newProfileCollection(ThreadContext context)
newProfileCollection
in interface ProfilingService
context
- the ThreadContext
the new created ProfileCollection
belongs to.ProfileCollection
instance, which will be associated with the given contextpublic org.jruby.runtime.profile.builtin.BuiltinProfilingService.DefaultMethodEnhancer newMethodEnhancer(Ruby runtime)
newMethodEnhancer
in interface ProfilingService
runtime
- The ruby instance the returned MethodEnhancer
belongs toMethodEnhancer
instance. will be used to add profiling information to all methods in the given runtime.public org.jruby.runtime.profile.builtin.BuiltinProfilingService.DefaultProfileReporter newProfileReporter(ThreadContext context)
newProfileReporter
in interface ProfilingService
context
- the ThreadContext
the returned ProfileReporter
will belongs to.ProfileReporter
which can be used to process the collected profile information.public void addProfiledMethod(java.lang.String id, DynamicMethod method)
ProfilingService
addProfiledMethod
in interface ProfilingService
id
- the namemethod
- the methodCopyright © 2001-2018 JRuby. All Rights Reserved.