Issue #4991 has been updated by Yui NARUSE.

Category set to core
Status changed from Open to Assigned
Assignee set to Koichi Sasada
Target version set to 1.9.x


----------------------------------------
Bug #4991: Add a method to retrieve raw data from GC::Profiler
http://redmine.ruby-lang.org/issues/4991

Author: Eric Hodel
Status: Assigned
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2011-07-08 trunk 32440) [x86_64-darwin10.8.0]


GC::Profiler.result gives a String report but there is no access to the raw profile data.  There is no way to extract data for automatic comparison without parsing the output String.  

The attached patch adds GC::Profile.data which exposes gc_profile_record_get.

This allows tools that can automatically compare profile runs to be written without parsing.


-- 
http://redmine.ruby-lang.org