in ext/liballocations/liballocations.c [137:152]
VALUE allocations_stop(VALUE self) {
AllocationState *state = allocation_state_get_struct(state_const);
if ( rb_ivar_get(self, id_enabled) != Qtrue ) {
return Qnil;
}
rb_tracepoint_disable(allocation_tracer);
rb_tracepoint_disable(free_tracer);
allocation_state_reset_counts(state);
rb_ivar_set(self, id_enabled, Qfalse);
return Qnil;
}