[DOC] Tweaks for GC.count

This commit is contained in:
Burdette Lamar 2025-08-13 09:53:22 -05:00 committed by GitHub
parent 40d07f268e
commit 7595ac9a9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

9
gc.rb
View file

@ -104,9 +104,14 @@ module GC
end
# call-seq:
# GC.count -> Integer
# self.count -> integer
#
# Returns the total number of times garbage collection has occurred:
#
# GC.count # => 385
# GC.start
# GC.count # => 386
#
# Returns the number of times \GC has occurred since the process started.
def self.count
Primitive.gc_count
end