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
Jean Boussier b49a870414 Add a :since option to dump_all
This is useful to see what a block of code allocated, e.g.

```
GC.start
GC.disable
ObjectSpace.trace_object_allocations do
  # run some code
end
gc_gen = GC.count
allocations = ObjectSpace.dump_all(output: :file, since: gc_gen)
GC.enable
GC.start
retentions = ObjectSpace.dump_all(output: :file, since: gc_gen)
```
2020-09-09 08:05:14 -07:00
..
depend sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
extconf.rb
object_tracing.c Fix ObjectSpace.trace_object_allocations_stop to not raise if the tracepoint were not initialized 2020-08-19 08:13:09 -07:00
objspace.c RHASH_TBL: is now ext-only 2020-08-19 15:10:53 +09:00
objspace.h
objspace_dump.c Add a :since option to dump_all 2020-09-09 08:05:14 -07:00