in ext/liballocations/liballocations.c [114:129]
VALUE allocations_start(VALUE self) {
AllocationState *state = allocation_state_get_struct(state_const);
if ( rb_ivar_get(self, id_enabled) == Qtrue ) {
return Qnil;
}
allocation_state_allocate_counts(state);
rb_ivar_set(self, id_enabled, Qtrue);
rb_tracepoint_enable(allocation_tracer);
rb_tracepoint_enable(free_tracer);
return Qnil;
}