Class ProfilingServiceLookup

java.lang.Object
org.jruby.runtime.profile.ProfilingServiceLookup

public class ProfilingServiceLookup extends Object
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 Details

    • ProfilingServiceLookup

      public ProfilingServiceLookup(Ruby runtime)
      Parameters:
      runtime - the ruby instance this instance belongs to
      Throws:
      IllegalArgumentException - if given runtime is null
  • Method Details

    • getService

      public ProfilingService getService()
      Returns runtime. At first invocation newProfiler() is called to create a new instance of the configured ProfilingService instance.
      Returns:
      the configured ProfilingService for the runtime.