End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
ObjectSpace.trace_object_allocations_clear
trace_object_allocations_clear
ext/objspace/object_tracing.c
View on GitHub ↗
static VALUE
trace_object_allocations_clear(VALUE self)
{
struct traceobj_arg *arg = get_traceobj_arg();
/* clear tables */
st_foreach(arg->object_table, free_values_i, 0);
st_clear(arg->object_table);
st_foreach(arg->str_table, free_keys_i, 0);
st_clear(arg->str_table);
/* do not touch TracePoints */
return Qnil;
}
Clear recorded tracing information.
See also
.trace_object_allocations
.trace_object_allocations_debug_start
.reachable_objects_from_root
.trace_object_allocations_start
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0