Add a method to retrieve raw data from GC::Profiler
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.
- gc.c (Init_GC): defined GC::Profiler.raw_data. based on the patch by Eric Hodel. [Bug #4991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
#5 [ruby-core:39359] Updated by matz (Yukihiro Matsumoto) almost 7 years ago
- ruby -v changed from ruby 1.9.3dev (2011-07-08 trunk 32440) [x86_64-darwin10.8.0] to -
#6 Updated by authorNari (Narihiro Nakamura) almost 7 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100