Package org.jruby.runtime.profile
Class ProfilingServiceLookup
java.lang.Object
org.jruby.runtime.profile.ProfilingServiceLookup
This helper is used to get the configured
ProfilingService
for the current Ruby
instance.
Each Ruby
instance has a ProfilingServiceLookup
property.- Author:
- Andre Kullmann
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProfilingServiceLookup
- Parameters:
runtime
- the ruby instance this instance belongs to- Throws:
IllegalArgumentException
- if given runtime is null
-
-
Method Details
-
getService
Returnsruntime
. At first invocationnewProfiler()
is called to create a new instance of the configuredProfilingService
instance.- Returns:
- the configured
ProfilingService
for theruntime
.
-