📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:03:17
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
ObjectSpace
📍 /opt/alt/ruby33/share/ri/system/ObjectSpace
🔄 Refresh
✏️
Editing: cdesc-ObjectSpace.ri
Read Only
U:RDoc::NormalModule[iI"ObjectSpace:ET@0o:RDoc::Markup::Document:@parts[o;;[ : @fileI"!ext/objspace/lib/objspace.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I""ext/objspace/object_tracing.c;T; 0o;;[ 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"GGenerally, 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. See the documentation for ;TI"L<code>ObjectSpace.define_finalizer</code> for important information on ;TI"&how to use this method correctly.;T@o:RDoc::Markup::Verbatim;[ I" 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}" }) ;TI" ;TI" a = nil ;TI" b = nil ;T:@format0o;;[I"_produces:_;T@o; ;[I" Finalizer two on 537763470 ;TI"Finalizer one on 537763480;T;0; I" gc.c;T; 0o;;[ ; I" gc.rb;T; 0o;;[ ; I"weakmap.c;T; 0; 0; 0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[[I"allocation_class_path;TI""ext/objspace/object_tracing.c;T[I"allocation_generation;T@Z[I"allocation_method_id;T@Z[I"allocation_sourcefile;T@Z[I"allocation_sourceline;T@Z[I"count_imemo_objects;TI"ext/objspace/objspace.c;T[I"count_nodes;T@e[I"count_objects;TI" gc.c;T[I"count_objects_size;T@e[I"count_symbols;T@e[I"count_tdata_objects;T@e[I"define_finalizer;T@j[I"each_object;T@j[I"garbage_collect;TI" gc.rb;T[I"internal_class_of;T@e[I"internal_super_of;T@e[I"memsize_of;T@e[I"memsize_of_all;T@e[I"reachable_objects_from;T@e[I" reachable_objects_from_root;T@e[I"trace_object_allocations;T@Z[I"#trace_object_allocations_clear;T@Z[I")trace_object_allocations_debug_start;T@Z[I"#trace_object_allocations_start;T@Z[I""trace_object_allocations_stop;T@Z[I"undefine_finalizer;T@j[I" instance;T[[;[ [;[ [;[ [I" dump;TI"!ext/objspace/lib/objspace.rb;T[I" dump_all;T@�[I"dump_shapes;T@�[@v@w[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[I"!ext/objspace/lib/objspace.rb;TI""ext/objspace/object_tracing.c;TI"ext/objspace/objspace.c;TI"!ext/objspace/objspace_dump.c;TI" gc.c;TI" gc.rb;TI"lib/cgi/session.rb;TI"lib/drb/weakidconv.rb;TI"lib/weakref.rb;TI"weakmap.c;T@JcRDoc::TopLevel
💾 Save Changes
❌ Cancel