U:RDoc::AnyMethod[iI"count_objects:ETI"ObjectSpace::count_objects;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"(Counts all objects grouped by type.;To:RDoc::Markup::BlankLineo; ; [I" It returns a hash, such as:;To:RDoc::Markup::Verbatim; [ I"{ ;TI" :TOTAL=>10000, ;TI" :FREE=>3011, ;TI" :T_OBJECT=>6, ;TI" :T_CLASS=>404, ;TI" # ... ;TI"} ;T: @format0o; ; [I"DThe contents of the returned hash are implementation specific. ;TI"!It may be changed in future.;T@o; ; [ I"6The keys starting with +:T_+ means live objects. ;TI"6For example, +:T_ARRAY+ is the number of arrays. ;TI"7+:FREE+ means object slots which is not used now. ;TI"!+:TOTAL+ means sum of above.;T@o; ; [I"6If the optional argument +result_hash+ is given, ;TI"Lit is overwritten and returned. This is intended to avoid probe effect.;T@o; ; [ I" h = {} ;TI""ObjectSpace.count_objects(h) ;TI" puts h ;TI"S# => { :TOTAL=>10000, :T_CLASS=>158280, :T_MODULE=>20672, :T_STRING=>527249 } ;T; 0o; ; [I"4This method is only expected to work on C Ruby.;T: @fileI" gc.c;T:0@omit_headings_from_table_of_contents_below0I"6ObjectSpace.count_objects([result_hash]) -> hash ;T0[I"(p1 = v1);T@2FI"ObjectSpace;TcRDoc::NormalModule00