summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-08-14 11:24:50 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-08-15 15:18:05 -0400
commit0f94e653597dc2ae21ae39ac4c85266f3bb36ab6 (patch)
tree2adacaf075c1570a43d5150c32c206a5abd27a3a /gc.rb
parent8c5b9ebf7144af73cf52209b73b849c078133dff (diff)
Add stat force_incremental_marking_finish_count
This commit adds key force_incremental_marking_finish_count to GC.stat_heap. This statistic returns the number of times the size pool has forced incremental marking to finish due to running out of slots.
Diffstat (limited to 'gc.rb')
-rw-r--r--gc.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.rb b/gc.rb
index 4803a844ee..c3b104454c 100644
--- a/gc.rb
+++ b/gc.rb
@@ -244,6 +244,9 @@ module GC
# [force_major_gc_count]
# The number of times major garbage collection cycles this heap has forced
# to start due to running out of free slots.
+ # [force_incremental_marking_finish_count]
+ # The number of times this heap has forced incremental marking to complete
+ # due to running out of pooled slots.
#
def self.stat_heap heap_name = nil, hash_or_key = nil
Primitive.gc_stat_heap heap_name, hash_or_key