| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 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::NormalModule[iI"ObjectSpace:ET@0o:RDoc::Markup::Document:@parts[ o;;[ :
@fileI""ext/objspace/object_tracing.c;T:0@omit_headings_from_table_of_contents_below0o;;[
o:RDoc::Markup::Paragraph;[I"JThe objspace library extends the ObjectSpace module and adds several ;TI"9methods to get internal statistic information about ;TI"object/memory management.;To:RDoc::Markup::BlankLine o;;[I"NYou need to <code>require 'objspace'</code> to use this extension module.;T@o;;[ I"EGenerally, you *SHOULD NOT* use this library if you do not know ;TI"Iabout the MRI implementation. Mainly, this library is for (memory) ;TI"Gprofiler developers and MRI developers who need to know about MRI ;TI"memory usage.;T; I"ext/objspace/objspace.c;T;
0o;;[ ; I"!ext/objspace/objspace_dump.c;T;
0o;;[
o;;[I":The ObjectSpace module contains a number of routines ;TI"Ithat interact with the garbage collection facility and allow you to ;TI"2traverse all living objects with an iterator.;T@o;;[I"QObjectSpace also provides support for object finalizers, procs that will be ;TI"Gcalled when a specific object is about to be destroyed by garbage ;TI"collection.;T@o:RDoc::Markup::Verbatim;[I"require 'objspace'
;TI"
;TI"
a = "A"
;TI"
b = "B"
;TI"
;TI"QObjectSpace.define_finalizer(a, proc {|id| puts "Finalizer one on #{id}" })
;TI"QObjectSpace.define_finalizer(b, proc {|id| puts "Finalizer two on #{id}" })
;T:@format0o;;[I"_produces:_;T@o;
;[I" Finalizer two on 537763470
;TI"Finalizer one on 537763480;T;0; I" gc.c;T;
0; 0;
0[ [ [ [[I"
class;T[[:public["[I"_id2ref;TI" gc.c;T[I"allocation_class_path;TI""ext/objspace/object_tracing.c;T[I"allocation_generation;T@M[I"allocation_method_id;T@M[I"allocation_sourcefile;T@M[I"allocation_sourceline;T@M[I"count_imemo_objects;TI"ext/objspace/objspace.c;T[I"count_nodes;T@X[I"count_objects;T@J[I"count_objects_size;T@X[I"count_symbols;T@X[I"count_tdata_objects;T@X[I"define_finalizer;T@J[I" dump;TI"!ext/objspace/objspace_dump.c;T[I"
dump_all;T@g[I"each_object;T@J[I"garbage_collect;T@J[I"internal_class_of;T@X[I"internal_super_of;T@X[I"memsize_of;T@X[I"memsize_of_all;T@X[I"reachable_objects_from;T@X[I" reachable_objects_from_root;T@X[I"trace_object_allocations;T@M[I"#trace_object_allocations_clear;T@M[I")trace_object_allocations_debug_start;T@M[I"#trace_object_allocations_start;T@M[I""trace_object_allocations_stop;T@M[I"undefine_finalizer;T@J[:protected[ [:private[ [I"
instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;
0[@@@!@>I"lib/cgi/session.rb;TI"lib/weakref.rb;T@>cRDoc::TopLevel