mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for GC.stat_heap
This commit is contained in:
parent
370580ec95
commit
abc5fc9a13
1 changed files with 2 additions and 0 deletions
2
gc.rb
2
gc.rb
|
@ -285,11 +285,13 @@ module GC
|
|||
# With arguments +nil+ and +hash+ given,
|
||||
# merges the statistics for all heaps into the given hash:
|
||||
#
|
||||
# h = {foo: 0, bar: 1}
|
||||
# GC.stat_heap(nil, h).keys # => [:foo, :bar, 0, 1, 2, 3, 4]
|
||||
#
|
||||
# With arguments +heap_id+ and +hash+ given,
|
||||
# merges the statistics for the given heap into the given hash:
|
||||
#
|
||||
# h = {foo: 0, bar: 1}
|
||||
# GC.stat_heap(2, h).keys
|
||||
# # =>
|
||||
# [:foo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue