Skip to content

Commit c0256d1

Browse files
committed
[DOC] Update GC.stat and GC.stat_heap documentation
I noticed some of the keys have been gone or renamed for a while.
1 parent f9e31f4 commit c0256d1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

gc.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ def self.count
193193
# - +:time+:
194194
# The total time spent in garbage collections (in milliseconds).
195195
# - +:heap_allocated_pages+:
196-
# The total number of +:heap_eden_pages+ + +:heap_tomb_pages+.
196+
# The total number of allocated pages.
197+
# - +:heap_empty_pages+:
198+
# - +:heap_allocated_pages+:
199+
# The number of pages with no live objects, and that could be released to the system.
197200
# - +:heap_sorted_length+:
198201
# The number of pages that can fit into the buffer that holds references to all pages.
199202
# - +:heap_allocatable_pages+:
@@ -210,8 +213,6 @@ def self.count
210213
# The total number of objects marked in the last \GC.
211214
# - +:heap_eden_pages+:
212215
# The total number of pages which contain at least one live slot.
213-
# - +:heap_tomb_pages+:
214-
# The total number of pages which do not contain any live slots.
215216
# - +:total_allocated_pages+:
216217
# The cumulative number of pages allocated since application start.
217218
# - +:total_freed_pages+:
@@ -374,11 +375,6 @@ def self.stat hash_or_key = nil
374375
# The number of pages in the eden heap.
375376
# - +:heap_eden_slots+:
376377
# The total number of slots in all of the pages in the eden heap.
377-
# - +:heap_tomb_pages+:
378-
# The number of pages in the tomb heap. The tomb heap only contains pages
379-
# that do not have any live objects.
380-
# - +:heap_tomb_slots+:
381-
# The total number of slots in all of the pages in the tomb heap.
382378
# - +:total_allocated_pages+:
383379
# The total number of pages that have been allocated in the heap.
384380
# - +:total_freed_pages+:

0 commit comments

Comments
 (0)