Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
module · Ruby 3.3
GC::Profiler
8 class methods
The GC profiler provides access to information on GC runs including time, length and object space size.
Example:
Example
GC::Profiler.enable require 'rdoc/rdoc' GC::Profiler.report GC::Profiler.disable
See also GC.count, GC.malloc_allocated_size and GC.malloc_allocations