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 531C51F5AE for ; Wed, 8 Jul 2020 08:43:44 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AAA0E1209EB; Wed, 8 Jul 2020 17:43:15 +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 57B021209E1 for ; Wed, 8 Jul 2020 17:43:13 +0900 (JST) Received: by filterdrecv-p3mdw1-75c584b9c6-t2pql with SMTP id filterdrecv-p3mdw1-75c584b9c6-t2pql-19-5F058738-5C 2020-07-08 08:43:36.978487952 +0000 UTC m=+1006444.095693903 Received: from herokuapp.com (unknown) by ismtpd0010p1iad1.sendgrid.net (SG) with ESMTP id bn04kVQ3SFO5vQo3I8Blaw for ; Wed, 08 Jul 2020 08:43:36.942 +0000 (UTC) Date: Wed, 08 Jul 2020 08:43:37 +0000 (UTC) From: mame@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 74874 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=2FinyA1V0bXouTB4FkWnzNiKb4=2FXt9ohupywUkQzk4eOXz?= =?us-ascii?Q?Ew+RwD6vbS1RFeGF+tXWFpc1HZMd0chqwars0gL?= =?us-ascii?Q?a+xelKZ7hEgob0pDHgU1SaG9XxYwyB6VPL1U=2F6S?= =?us-ascii?Q?OUsHfbRnz=2FUc4jFQXivy5vUvUvwTimvNm62lcbK?= =?us-ascii?Q?61xB+9QVh=2FNztOyqMqP9dEA30+ja2jUrNXPJVvZ?= =?us-ascii?Q?n+EaVqEYJT+5Z16EI=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 99084 Subject: [ruby-core:99084] [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 reported by mame (Yusuke Endoh). ---------------------------------------- Feature #17018: Show cfunc frames in rb_profile_frames() https://bugs.ruby-lang.org/issues/17018 * Author: mame (Yusuke Endoh) * Status: Open * 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/