Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
GC.count
GC.count → Integer
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/gc.rb, line 105
def self.count
Primitive.gc_count
end
The number of times GC occurred.
It returns the number of times GC occurred since the process started.