summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-08-14 14:06:03 -0400
committerPeter Zhu <[email protected]>2023-08-15 08:54:27 -0400
commit01f74b28521069e2582fbd751c34b115fe033a2b ()
treee406216a747f79212d7a50a3b13a7046e71b663b /gc.rb
parent2498140777020808a007691516e7bf8d8d862215 (diff)
[DOC] Improve docs about keys in GC.stat_heap
Notes: Merged: https://.com/ruby/ruby/pull/8219
-rw-r--r--gc.rb27
1 files changed, 27 insertions, 0 deletions
@@ -219,6 +219,33 @@ module GC
# If the optional argument, hash, is given, it is overwritten and returned.
#
# This method is only expected to work on CRuby.
def self.stat_heap heap_name = nil, hash_or_key = nil
Primitive.gc_stat_heap heap_name, hash_or_key
end