Project

General

Profile

Feature #17018

Show cfunc frames in rb_profile_frames()

Added by mame (Yusuke Endoh) 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
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

Also available in: Atom PDF