End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
GC::Profiler.enabled?
GC::Profiler.enabled? → true or false
gc.c
View on GitHub ↗
static VALUE
gc_profile_enable_get(VALUE self)
{
rb_objspace_t *objspace = &rb_objspace;
return RBOOL(objspace->profile.run);
}
The current status of GC profile mode.