From: Roger Pack Date: 2009-10-24T06:31:44+09:00 Subject: [ruby-core:26262] [Feature #2260] better access with GC_DEBUG Feature #2260: better access with GC_DEBUG http://redmine.ruby-lang.org/issues/show/2260 Author: Roger Pack Status: Open, Priority: Normal It would be nice to be able to know where [what line of code] objects were allocated one. For instance ObjectSpace.each_object{|o| puts o.debug_info } or something like >> a = 'b' >> ObjectSpace.describe(a) => "instance of String at 0xffff from line 4 file irb" Then users could use it to more easily search for memory reference leaks. Since the information is already there with the "-DGC_DEBUG=1" flag, it should be possible. I'd be happy to give it a shot if it would be useful. Thoughts? -r ---------------------------------------- http://redmine.ruby-lang.org