End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
GC.count
GC.count → Integer
gc.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/gc.rb, line 99
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.