D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ObjectSpace
/
Filename :
cdesc-ObjectSpace.ri
back
Copy
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"Ncalled after a specific object was destroyed by garbage collection. See ;TI"Hthe documentation for +ObjectSpace.define_finalizer+ for important ;TI"5information on 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[[I"allocation_class_path;TI""ext/objspace/object_tracing.c;T[I"allocation_generation;T@U[I"allocation_method_id;T@U[I"allocation_sourcefile;T@U[I"allocation_sourceline;T@U[I"count_imemo_objects;TI"ext/objspace/objspace.c;T[I"count_nodes;T@`[I"count_objects;TI" gc.c;T[I"count_objects_size;T@`[I"count_symbols;T@`[I"count_tdata_objects;T@`[I"define_finalizer;T@e[I"each_object;T@e[I"garbage_collect;TI" gc.rb;T[I"internal_class_of;T@`[I"internal_super_of;T@`[I"memsize_of;T@`[I"memsize_of_all;T@`[I"reachable_objects_from;T@`[I" reachable_objects_from_root;T@`[I"trace_object_allocations;T@U[I"#trace_object_allocations_clear;T@U[I")trace_object_allocations_debug_start;T@U[I"#trace_object_allocations_start;T@U[I""trace_object_allocations_stop;T@U[I"undefine_finalizer;T@e[:protected[ [:private[ [I" instance;T[[;[[I" dump;TI"!ext/objspace/lib/objspace.rb;T[I" dump_all;T@�[I"dump_shapes;T@�[;[ [;[[@q@r[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@@@!@$@C@FI"lib/cgi/session.rb;TI"lib/weakref.rb;T@I@IcRDoc::TopLevel