D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
GC
/
Filename :
stat_heap-c.ri
back
Copy
U:RDoc::AnyMethod[iI"stat_heap:ETI"GC::stat_heap;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Returns information for heaps in the \GC.;To:RDoc::Markup::BlankLine o; ; [ I"QIf the first optional argument, +heap_name+, is passed in and not +nil+, it ;TI"Hreturns a +Hash+ containing information about the particular heap. ;TI"DOtherwise, it will return a +Hash+ with heap names as keys and ;TI">a +Hash+ containing information about the heap as values.;T@o; ; [I"SIf the second optional argument, +hash_or_key+, is given as a +Hash+, it will ;TI"Mbe overwritten and returned. This is intended to avoid the probe effect.;T@o; ; [I"RIf both optional arguments are passed in and the second optional argument is ;TI"Ha symbol, it will return a +Numeric+ value for the particular heap.;T@o; ; [I"POn CRuby, +heap_name+ is of the type +Integer+ but may be of type +String+ ;TI"on other implementations.;T@o; ; [I"LThe contents of the hash are implementation-specific and may change in ;TI"the future without notice.;T@o; ; [I"NIf the optional argument, hash, is given, it is overwritten and returned.;T@o; ; [I"3This method is only expected to work on CRuby.;T@o; ; [I"LThe hash includes the following keys about the internal information in ;TI" the \GC:;T@o:RDoc::Markup::List: @type: LABEL:@items[o:RDoc::Markup::ListItem:@label[I"slot_size;T; [o; ; [I"(The slot size of the heap in bytes.;To;;[I"heap_allocatable_pages;T; [o; ; [I"HThe number of pages that can be allocated without triggering a new ;TI"garbage collection cycle.;To;;[I"heap_eden_pages;T; [o; ; [I"*The number of pages in the eden heap.;To;;[I"heap_eden_slots;T; [o; ; [I"DThe total number of slots in all of the pages in the eden heap.;To;;[I"heap_tomb_pages;T; [o; ; [I"MThe number of pages in the tomb heap. The tomb heap only contains pages ;TI"'that do not have any live objects.;To;;[I"heap_tomb_slots;T; [o; ; [I"DThe total number of slots in all of the pages in the tomb heap.;To;;[I"total_allocated_pages;T; [o; ; [I"DThe total number of pages that have been allocated in the heap.;To;;[I"total_freed_pages;T; [o; ; [I"MThe total number of pages that have been freed and released back to the ;TI"system in the heap.;To;;[I"force_major_gc_count;T; [o; ; [I"NThe number of times this heap has forced major garbage collection cycles ;TI"/to start due to running out of free slots.;To;;[I"+force_incremental_marking_finish_count;T; [o; ; [I"NThe number of times this heap has forced incremental marking to complete ;TI"(due to running out of pooled slots.;T: @fileI" gc.rb;T:0@omit_headings_from_table_of_contents_below0I"�GC.stat_heap -> Hash GC.stat_heap(nil, hash) -> Hash GC.stat_heap(heap_name) -> Hash GC.stat_heap(heap_name, hash) -> Hash GC.stat_heap(heap_name, :key) -> Numeric ;T0[ I")(heap_name = nil, hash_or_key = nil);T@|FI"GC;TcRDoc::NormalModule00