Project

General

Profile

Actions

Bug #4991

closed

Add a method to retrieve raw data from GC::Profiler

Added by drbrain (Eric Hodel) almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
ruby -v:
-
Backport:
[ruby-core:37857]

Description

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.


Files

gc.c.profiler_data.patch (1.6 KB) gc.c.profiler_data.patch drbrain (Eric Hodel), 07/08/2011 09:34 AM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #5292: Access to GC::Profiler RecordsClosed09/07/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0