From abc5fc9a13a4083a50b344c2d13cad649799f5f0 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Thu, 14 Aug 2025 21:51:47 -0500 Subject: [PATCH] [DOC] Tweaks for GC.stat_heap --- gc.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gc.rb b/gc.rb index f1b50c3aba..042a5707b8 100644 --- a/gc.rb +++ b/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,