diff options
-rw-r--r-- | vm_trace.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -34,6 +34,8 @@ #include "builtin.h" /* (1) trace mechanisms */ typedef struct rb_event_hook_struct { @@ -1334,6 +1336,15 @@ tracepoint_enable_m(rb_execution_context_t *ec, VALUE tpval, VALUE target, VALUE rb_tp_t *tp = tpptr(tpval); int previous_tracing = tp->tracing; /* check target_thread */ if (RTEST(target_thread)) { if (tp->target_th) { @@ -1563,6 +1574,8 @@ tracepoint_allow_reentry(rb_execution_context_t *ec, VALUE self) void Init_vm_trace(void) { /* trace_func */ rb_define_global_function("set_trace_func", set_trace_func, 1); rb_define_method(rb_cThread, "set_trace_func", thread_set_trace_func_m, 1); |