Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
GC.count
() -> ::Integer
GC.count → Integer
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/gc.rb, line 100
def self.count
Primitive.gc_count
end
Returns the number of times GC has occurred since the process started.