D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ObjectSpace
/
Filename :
dump_all-i.ri
back
Copy
U:RDoc::AnyMethod[iI" dump_all:ETI"ObjectSpace#dump_all;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"0Dump the contents of the ruby heap as JSON.;To:RDoc::Markup::BlankLine o; ; [I"0_output_ argument is the same as for #dump.;T@o; ; [I"f_full_ must be a boolean. If true, all heap slots are dumped including the empty ones (+T_NONE+).;T@o; ; [I"5_since_ must be a non-negative integer or +nil+.;T@o; ; [ I"KIf _since_ is a positive integer, only objects of that generation and ;TI"Pnewer generations are dumped. The current generation can be accessed using ;TI"VGC::count. Objects that were allocated without object allocation tracing enabled ;TI"Jare ignored. See ::trace_object_allocations for more information and ;TI"examples.;T@o; ; [I"?If _since_ is omitted or is +nil+, all objects are dumped.;T@o; ; [I":_shapes_ must be a boolean or a non-negative integer.;T@o; ; [I"LIf _shapes_ is a positive integer, only shapes newer than the provided ;TI"jshape id are dumped. The current shape_id can be accessed using <tt>RubyVM.stat(:next_shape_id)</tt>.;T@o; ; [I"2If _shapes_ is +false+, no shapes are dumped.;T@o; ; [I"^To only dump objects allocated past a certain point you can combine _since_ and _shapes_:;To:RDoc::Markup::Verbatim; [I"*ObjectSpace.trace_object_allocations ;TI"GC.start ;TI"gc_generation = GC.count ;TI"4shape_generation = RubyVM.stat(:next_shape_id) ;TI"call_method_to_instrument ;TI"JObjectSpace.dump_all(since: gc_generation, shapes: shape_generation) ;T:@format0o; ; [ I"7This method is only expected to work with C Ruby. ;TI">This is an experimental method and is subject to change. ;TI"AIn particular, the function signature and output format are ;TI"@not guaranteed to be compatible in future versions of ruby.;T: @fileI"!ext/objspace/lib/objspace.rb;T:0@omit_headings_from_table_of_contents_below000[ I";(output: :file, full: false, since: nil, shapes: true);T@=FI"ObjectSpace;TcRDoc::NormalModule00