Package org.jruby.runtime
Class TraceEventManager
java.lang.Object
org.jruby.runtime.TraceEventManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodHandle
static final MethodHandle
static final MethodHandle
static final MethodHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventHook
(EventHook hook) Deprecated.void
addEventHook
(ThreadContext context, EventHook hook) void
callEventHooks
(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type) boolean
void
removeAllCallEventHooksFor
(ThreadContext context) Remove all event hooks which are associated with a particular thread.void
removeEventHook
(EventHook hook) void
setTraceFunction
(RubyProc traceFunction) void
setTraceFunction
(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()
-