Add `full` option to `ObjectSpace.dump_all`
I would like to include T_NONE slots in the
ObjectSpace.dump_all outpout so that I can visualize heap fragmentation. I've attached a patch that adds a "full" option to
dump_all so that all slots are dumped to the JSON output, including T_NONE.
Updated by Anonymous almost 6 years ago
- Status changed from Open to Closed
Applied in changeset r57260.
full option to
full option includes all slots (even
T_NONE) in the JSON output.
This is to help with debugging heap fragmentation.
Here is an example usage:
File.open('heap.json', 'w') do |f| ObjectSpace.dump_all(output: f, full: true) end
heap.json file contains all slots, including empty slots.