Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
GC::Profiler.report
GC::Profiler.report
GC::Profiler.report(io)
gc.c
View on GitHub ↗
static VALUE
gc_profile_report(int argc, VALUE *argv, VALUE self)
{
VALUE out;
out = (!rb_check_arity(argc, 0, 1) ? rb_stdout : argv[0]);
gc_profile_dump_on(out, rb_io_write);
return Qnil;
}
Writes the GC::Profiler.result to $stdout or the given IO object.