public class BuiltinProfilingService extends java.lang.Object implements ProfilingService
ProfilingService will be used for all profiling methods
which are shipped with jruby.| Modifier and Type | Class and Description |
|---|---|
private static class |
BuiltinProfilingService.DefaultMethodEnhancer |
private static class |
BuiltinProfilingService.DefaultProfileReporter |
| Constructor and Description |
|---|
BuiltinProfilingService() |
| Modifier and Type | Method and Description |
|---|---|
BuiltinProfilingService.DefaultMethodEnhancer |
newMethodEnhancer(Ruby runtime) |
ProfileData |
newProfileCollection(ThreadContext context) |
BuiltinProfilingService.DefaultProfileReporter |
newProfileReporter(ThreadContext context) |
public ProfileData newProfileCollection(ThreadContext context)
newProfileCollection in interface ProfilingServicecontext - the ThreadContext the new created ProfileCollection belongs to.ProfileCollection instance, which will be associated with the given contextpublic BuiltinProfilingService.DefaultMethodEnhancer newMethodEnhancer(Ruby runtime)
newMethodEnhancer in interface ProfilingServiceruntime - The ruby instance the returned MethodEnhancer belongs toMethodEnhancer instance. will be used to add profiling information to all methods in the given runtime.public BuiltinProfilingService.DefaultProfileReporter newProfileReporter(ThreadContext context)
newProfileReporter in interface ProfilingServicecontext - the ThreadContext the returned ProfileReporter will belongs to.ProfileReporter which can be used to process the collected profile information.