Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
ObjectSpace
/
//opt/alt/ruby21/share/ri/2.1.0/system/ObjectSpace/cdesc-ObjectSpace.ri
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;;[ 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" 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@H[I"allocation_method_id;T@H[I"allocation_sourcefile;T@H[I"allocation_sourceline;T@H[I"count_nodes;TI"ext/objspace/objspace.c;T[I"count_objects;T@E[I"count_objects_size;T@S[I"count_tdata_objects;T@S[I"define_finalizer;T@E[I"each_object;T@E[I"garbage_collect;T@E[I"memsize_of;T@S[I"memsize_of_all;T@S[I"reachable_objects_from;T@S[I" reachable_objects_from_root;T@S[I"trace_object_allocations;T@H[I"#trace_object_allocations_clear;T@H[I")trace_object_allocations_debug_start;T@H[I"#trace_object_allocations_start;T@H[I""trace_object_allocations_stop;T@H[I"undefine_finalizer;T@E[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[ @@@9I"lib/cgi/session.rb;TI"lib/weakref.rb;T@9cRDoc::TopLevel