| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/ObjectSpace/ |
Upload File : |
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::BlankLine o;
; [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