Method: FinalizeBlock#setup_traces
- Defined in:
- ext/finalize_block/finalize_block.c
#setup_traces(klass) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ext/finalize_block/finalize_block.c', line 32 static VALUE setup_traces(VALUE self, VALUE klass) { VALUE traces = rb_ary_new(); rb_ary_push(traces, rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ, newobj_i, (void *)klass)); rb_ary_push(traces, rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_FREEOBJ, freeobj_i, NULL)); return traces; } |