public interface ProfilingService
Modifier and Type | Method and Description |
---|---|
void |
addProfiledMethod(java.lang.String name,
DynamicMethod method)
Add a named method to the profiling service to be monitored.
|
MethodEnhancer |
newMethodEnhancer(Ruby runtime) |
ProfileCollection |
newProfileCollection(ThreadContext context) |
ProfileReporter |
newProfileReporter(ThreadContext context) |
ProfileCollection newProfileCollection(ThreadContext context)
context
- the ThreadContext
the new created ProfileCollection
belongs to.ProfileCollection
instance, which will be associated with the given contextMethodEnhancer newMethodEnhancer(Ruby runtime)
runtime
- The ruby instance the returned MethodEnhancer
belongs toMethodEnhancer
instance. will be used to add profiling information to all methods in the given runtime.ProfileReporter newProfileReporter(ThreadContext context)
context
- the ThreadContext
the returned ProfileReporter
will belongs to.ProfileReporter
which can be used to process the collected profile information.void addProfiledMethod(java.lang.String name, DynamicMethod method)
name
- the namemethod
- the methodCopyright © 2001-2018 JRuby. All Rights Reserved.