method
stat
v2_1_10 -
Show latest stable
- Class:
GC
stat(p1 = v1)public
Returns a Hash containing information about the GC.
The hash includes information about internal statistics about GC such as:
{ :count=>2, :heap_used=>9, :heap_length=>11, :heap_increment=>2, :heap_live_slot=>6836, :heap_free_slot=>519, :heap_final_slot=>0, :heap_swept_slot=>818, :total_allocated_object=>7674, :total_freed_object=>838, :malloc_increase=>181034, :malloc_limit=>16777216, :minor_gc_count=>2, :major_gc_count=>0, :remembered_shady_object=>55, :remembered_shady_object_limit=>0, :old_object=>2422, :old_object_limit=>0, :oldmalloc_increase=>277386, :oldmalloc_limit=>16777216 }
The contents of the hash are implementation specific and may be changed in the future.
This method is only expected to work on C Ruby.