From: "tmm1 (Aman Gupta)" Date: 2013-10-17T02:05:10+09:00 Subject: [ruby-core:57905] [ruby-trunk - Bug #9026] [PATCH] Add ObjectSpace.heap_dump to objspace.so Issue #9026 has been updated by tmm1 (Aman Gupta). Based on feedback from ko1-san, I have modified the ruby signatures as follows: * call-seq: * ObjectSpace.dump(obj[, output: :string]) # => "{...}" * ObjectSpace.dump(obj, output: :file) # => "/tmp/rubyobj000000" * ObjectSpace.dump(obj, output: :stdout) # => nil * call-seq: * ObjectSpace.dump_all([output: :file]) # => "/tmp/rubyheap000000" * ObjectSpace.dump_all(output: :stdout) # => nil * ObjectSpace.dump_all(output: :string) # => "{...}\n{...}\n..." If anyone has opinions on these APIs, I'd love to hear them. ---------------------------------------- Bug #9026: [PATCH] Add ObjectSpace.heap_dump to objspace.so https://bugs.ruby-lang.org/issues/9026#change-42499 Author: tmm1 (Aman Gupta) Status: Open Priority: Normal Assignee: Category: Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-10-16 trunk 43297) [x86_64-darwin12.4.1] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN https://github.com/ruby/ruby/pull/423 -- http://bugs.ruby-lang.org/