Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
ObjectSpace.trace_object_allocations_stop
() -> void
trace_object_allocations_stop
ext/objspace/object_tracing.c
View on GitHub ↗
static VALUE
trace_object_allocations_stop(VALUE self)
{
struct traceobj_arg *arg = get_traceobj_arg();
if (arg->running > 0) {
arg->running--;
}
if (arg->running == 0) {
if (arg->newobj_trace != 0) {
rb_tracepoint_disable(arg->newobj_trace);
}
if (arg->freeobj_trace != 0) {
rb_tracepoint_disable(arg->freeobj_trace);
}
}
return Qnil;
}
Stop tracing object allocations.
Note that if ::trace_object_allocations_start is called n-times, then tracing will stop after calling ::trace_object_allocations_stop n-times.
See also
.trace_object_allocations_start
.undefine_finalizer
.trace_object_allocations_debug_start
#dump
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0