Issue #4991 has been reported by Eric Hodel.

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

Author: Eric Hodel
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
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