1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/objspace
tenderlove ed2abc4362 Add full option to ObjectSpace.dump_all
The `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:

```ruby
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.

[Feature #13001] [ruby-core:78468]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-03 22:42:10 +00:00
..
depend Update dependencies. 2016-04-11 11:50:00 +00:00
extconf.rb handle ext/ as r53141 2015-12-16 05:31:54 +00:00
object_tracing.c [DOC] replace Fixnum with Integer [ci skip] 2016-10-26 06:11:23 +00:00
objspace.c objspace.c:: indent [ci skip] 2016-11-18 11:05:20 +00:00
objspace.h * ext/objspace/object_tracing.c: Add experimental methods to dump 2013-11-08 17:06:55 +00:00
objspace_dump.c Add full option to ObjectSpace.dump_all 2017-01-03 22:42:10 +00:00