Add full option to ObjectSpace.dump_all
full
ObjectSpace.dump_all
The full option includes all slots (even T_NONE) in the JSON output. This is to help with debugging heap fragmentation.
T_NONE
Here is an example usage:
File.open('heap.json', 'w') do |f| ObjectSpace.dump_all(output: f, full: true) end
The heap.json file contains all slots, including empty slots.
heap.json
[Feature #13001] [ruby-core:78468]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Add
full
option toObjectSpace.dump_all
The
full
option includes all slots (evenT_NONE
) in the JSON output.This is to help with debugging heap fragmentation.
Here is an example usage:
The
heap.json
file contains all slots, including empty slots.[Feature #13001] [ruby-core:78468]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e