Project

General

Profile

Actions

Feature #17018

closed

Show cfunc frames in rb_profile_frames()

Added by mame (Yusuke Endoh) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:99084]

Description

rb_profile_frames(), which is the backend of stackprof, shows only ruby frames, so sometimes it is difficult to find a bottleneck in an application.
This will be gradually solved by "rubifying" all builtin methods (#16254), but I guess it will take a few years at least. So, how about showing cfunc frames in the profiled result that returns rb_profile_frames()?

Here is a patch and an example stackprof result:

https://github.com/ruby/ruby/pull/3299

Actions

Also available in: Atom PDF

Like0
Like0