Package org.jruby.runtime
Class TraceEventManager
java.lang.Object
org.jruby.runtime.TraceEventManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodHandlestatic final MethodHandlestatic final MethodHandlestatic final MethodHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHook(EventHook hook) Deprecated.voidaddEventHook(ThreadContext context, EventHook hook) voidcallEventHooks(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type) booleanvoidremoveAllCallEventHooksFor(ThreadContext context) Remove all event hooks which are associated with a particular thread.voidremoveEventHook(EventHook hook) voidsetTraceFunction(RubyProc traceFunction) voidsetTraceFunction(TraceEventManager.CallTraceFuncHook hook, RubyProc traceFunction)
-
Field Details
-
TRACE_ON
-
TRACE_OFF
-
B_TRACE_ON
-
B_TRACE_OFF
-
-
Constructor Details
-
TraceEventManager
-
-
Method Details
-
addEventHook
Deprecated. -
addEventHook
-
removeEventHook
-
setTraceFunction
-
setTraceFunction
-
removeAllCallEventHooksFor
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
-
getBCallBReturnSite
-
hasEventHooks
public boolean hasEventHooks()
-