mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
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.
This commit is contained in:
parent
8c5b9ebf71
commit
0f94e65359
3 changed files with 9 additions and 0 deletions
|
@ -163,6 +163,7 @@ class TestGc < Test::Unit::TestCase
|
|||
assert_operator stat_heap[:total_allocated_pages], :>=, 0
|
||||
assert_operator stat_heap[:total_freed_pages], :>=, 0
|
||||
assert_operator stat_heap[:force_major_gc_count], :>=, 0
|
||||
assert_operator stat_heap[:force_incremental_marking_finish_count], :>=, 0
|
||||
end
|
||||
|
||||
GC.stat_heap(0, stat_heap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue