public class TestProfilingService extends java.lang.Object implements ProfilingService
Constructor and Description |
---|
TestProfilingService() |
Modifier and Type | Method and Description |
---|---|
MethodEnhancer |
newMethodEnhancer(Ruby runtime) |
ProfileCollection |
newProfileCollection(ThreadContext context) |
ProfileReporter |
newProfileReporter(ThreadContext context) |
public ProfileCollection 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 MethodEnhancer 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 ProfileReporter 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.Copyright © 2002-2009 JRuby Team. All Rights Reserved.