ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: mame@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:99084] [Ruby master Feature#17018] Show cfunc frames in rb_profile_frames()
Date: Wed, 08 Jul 2020 08:43:37 +0000 (UTC)	[thread overview]
Message-ID: <redmine.issue-17018.20200708084336.18@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17018.20200708084336.18@ruby-lang.org

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/

       reply	other threads:[~2020-07-08  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-08  8:43 mame [this message]
2020-07-28  4:19 ` [ruby-core:99365] [Ruby master Feature#17018] Show cfunc frames in rb_profile_frames() mame

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.issue-17018.20200708084336.18@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).