Class TraceEventManager

java.lang.Object
org.jruby.runtime.TraceEventManager

public class TraceEventManager extends Object
  • Field Details

  • Constructor Details

    • TraceEventManager

      public TraceEventManager(Ruby runtime)
  • Method Details

    • addEventHook

      @Deprecated(since="10.0") public void addEventHook(EventHook hook)
      Deprecated.
    • addEventHook

      public void addEventHook(ThreadContext context, EventHook hook)
    • removeEventHook

      public void removeEventHook(EventHook hook)
    • setTraceFunction

      public void setTraceFunction(RubyProc traceFunction)
    • setTraceFunction

      public void setTraceFunction(TraceEventManager.CallTraceFuncHook hook, RubyProc traceFunction)
    • removeAllCallEventHooksFor

      public void removeAllCallEventHooksFor(ThreadContext context)
      Remove all event hooks which are associated with a particular thread.
      Parameters:
      context - the context of the ruby thread we are interested in.
    • callEventHooks

      public void callEventHooks(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type)
    • getCallReturnSite

      public MutableCallSite getCallReturnSite()
    • getBCallBReturnSite

      public MutableCallSite getBCallBReturnSite()
    • hasEventHooks

      public boolean hasEventHooks()