From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30491: 26.0; (elisp) `Profiling' Date: Sat, 17 Feb 2018 18:24:01 +0200 Message-ID: <83po53bn4u.fsf@gnu.org> References: <> <<837ercc4mp.fsf@gnu.org>> <1916c70f-34de-44f4-9c0a-2e3bb7c57a49@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1518884597 30900 195.159.176.226 (17 Feb 2018 16:23:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Feb 2018 16:23:17 +0000 (UTC) Cc: 30491@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 17 17:23:13 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en5Ga-0007fD-2m for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Feb 2018 17:23:12 +0100 Original-Received: from localhost ([::1]:37887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en5Ib-000824-27 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Feb 2018 11:25:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en5IP-000818-2J for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 11:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en5IL-00028d-T6 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 11:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1en5IL-00028V-Pe for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 11:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1en5IL-00083E-Kl for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2018 11:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30491 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30491-submit@debbugs.gnu.org id=B30491.151888464830879 (code B ref 30491); Sat, 17 Feb 2018 16:25:01 +0000 Original-Received: (at 30491) by debbugs.gnu.org; 17 Feb 2018 16:24:08 +0000 Original-Received: from localhost ([127.0.0.1]:48509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en5HU-00081z-6r for submit@debbugs.gnu.org; Sat, 17 Feb 2018 11:24:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en5HT-00081n-6j for 30491@debbugs.gnu.org; Sat, 17 Feb 2018 11:24:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en5HK-0001dS-VU for 30491@debbugs.gnu.org; Sat, 17 Feb 2018 11:24:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en5HK-0001dO-RG; Sat, 17 Feb 2018 11:23:58 -0500 Original-Received: from [176.228.60.248] (port=4117 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1en5HK-00020s-1l; Sat, 17 Feb 2018 11:23:58 -0500 In-reply-to: <1916c70f-34de-44f4-9c0a-2e3bb7c57a49@default> (message from Drew Adams on Sat, 17 Feb 2018 07:45:34 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143391 Archived-At: > Date: Sat, 17 Feb 2018 07:45:34 -0800 (PST) > From: Drew Adams > Cc: 30491@debbugs.gnu.org > > > > 4. A simple example of using the profiler commands would be welcome. > > > > Not sure what example you had in mind. The text mentions 3 profiler > > commands to invoke, and describes the resulting profile. What would > > the example include, besides just "M-x profile-start" etc., which > > sounds redundant? > > I guess I was mainly thinking of use of the resulting output. > > Perhaps it was not so much a doc problem as a problem of > usability of the UI of the report. > > I know I was looking for a way to "open" not just the entry > on the current line, but also a way to open either (1) all > entries or (2) all entries in the region. I ended up using > a keyboard macro to do #1. It's much easier to do "C-u RET" on the top line of the call-tree. And the fact that prefix argument has this effect is documented. > > > Also, some brief comparison of profile, elp, and benchmark could be > > helpful: what are their particular purposes, strengths, etc. > > > > I think this was already clear from the text: e.g., benchmark only > > measures the total execution time of a form, it doesn't produce any > > insights on the distribution of that time between the form's > > components. I added more text to make some differences more clear. > > This post makes a start, but it doesn't mention elp. > Perhaps the text you've added (I've not seen it yet) > already makes a similar brief comparison. > > https://emacs.stackexchange.com/a/540/105 I think this is covered now.