summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2021-11-29 09:33:54 -0500
committerPeter Zhu <[email protected]>2021-11-29 09:40:30 -0500
commitf8ead3a72f4cde3dbec48d33f8921a97b090f799 ()
tree321dadba2fab4e702bb8ea56e172eeea583140f8 /gc.rb
parent659c864a43d4bf2d287b08b451f8c67cd818739a (diff)
[ci skip] Update documentation for GC.stat
Notes: Merged: https://.com/ruby/ruby/pull/5189
-rw-r--r--gc.rb8
1 files changed, 4 insertions, 4 deletions
@@ -123,13 +123,13 @@ module GC
# call-seq:
# GC.stat -> Hash
- # GC.stat(hash) -> hash
# GC.stat(:key) -> Numeric
#
# Returns a Hash containing information about the GC.
#
- # The contents of the hash are implementation specific and may be changed in
- # the future.
#
# The hash includes information about internal statistics about GC such as:
#
@@ -191,7 +191,7 @@ module GC
# it is overwritten and returned.
# This is intended to avoid probe effect.
#
- # This method is only expected to work on C Ruby.
def self.stat hash_or_key = nil
Primitive.gc_stat hash_or_key
end