From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id CA2F01F5AE for ; Tue, 28 Jul 2020 04:19:07 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id A631F120A3C; Tue, 28 Jul 2020 13:18:37 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id E8C07120A39 for ; Tue, 28 Jul 2020 13:18:35 +0900 (JST) Received: by filterdrecv-p3iad2-5b55dcd864-t97fw with SMTP id filterdrecv-p3iad2-5b55dcd864-t97fw-17-5F1FA737-2F 2020-07-28 04:19:03.418319251 +0000 UTC m=+2718585.052613109 Received: from herokuapp.com (unknown) by ismtpd0068p1mdw1.sendgrid.net (SG) with ESMTP id _A5BmUbaRAm326IQjimFAQ for ; Tue, 28 Jul 2020 04:19:03.342 +0000 (UTC) Date: Tue, 28 Jul 2020 04:19:03 +0000 (UTC) From: mame@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 75161 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 17018 X-Redmine-Issue-Author: mame X-Redmine-Sender: mame X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?EJh2gqwnyqXtd++xo=2FinyA1V0bXouTB4FkWnzNiKb49BRjynYVOiczqFfDQAY4?= =?us-ascii?Q?E28IuYxUC=2F12+sj=2FQ5bWYVHpJaW3WZ7gS1MK2K2?= =?us-ascii?Q?M0QB5MTCDjvbQxwLdbC8A4KglFYNR0AXF7mNq=2Fb?= =?us-ascii?Q?q3IhVSs99BBljtz1JIG4rG3oW0iOkgcD=2FKOWacR?= =?us-ascii?Q?eNLjKvLgHmCMJIoF45iaVMzsOS1gnG6E7Okvbkp?= =?us-ascii?Q?Zkt51EY1YR9Fc=2Fuy4=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99365 Subject: [ruby-core:99365] [Ruby master Feature#17018] Show cfunc frames in rb_profile_frames() X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17018 has been updated by mame (Yusuke Endoh). Status changed from Open to Closed This ticket was discussed at the dev-meeting; there is no objection, and matz accepted. I've just merged my PR. ---------------------------------------- Feature #17018: Show cfunc frames in rb_profile_frames() https://bugs.ruby-lang.org/issues/17018#change-86768 * Author: mame (Yusuke Endoh) * Status: Closed * Priority: Normal * Target version: 3.0 ---------------------------------------- `rb_profile_frames()`, which is the backend of [stackprof](https://github.com/tmm1/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 -- https://bugs.ruby-lang.org/