From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68693: 26.3; (elisp) `Profiling': Say how to use (e.g. read) a saved profile Date: Thu, 25 Jan 2024 09:33:56 +0200 Message-ID: <86msstdfyz.fsf@gnu.org> References: <86v87icymy.fsf@gnu.org> <86ttn2cwv3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68693@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 25 08:35:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSuGV-0000eQ-CL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jan 2024 08:35:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSuGP-0001jp-7z; Thu, 25 Jan 2024 02:35:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSuGH-0001jR-BD for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 02:34:59 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSuGG-0001vD-Bz for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 02:34:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSuGM-0001hq-1X for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 02:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jan 2024 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68693 X-GNU-PR-Package: emacs Original-Received: via spool by 68693-submit@debbugs.gnu.org id=B68693.17061680516498 (code B ref 68693); Thu, 25 Jan 2024 07:35:02 +0000 Original-Received: (at 68693) by debbugs.gnu.org; 25 Jan 2024 07:34:11 +0000 Original-Received: from localhost ([127.0.0.1]:47195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSuFX-0001gj-DW for submit@debbugs.gnu.org; Thu, 25 Jan 2024 02:34:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSuFV-0001gW-HT for 68693@debbugs.gnu.org; Thu, 25 Jan 2024 02:34:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSuFK-0001J1-8K; Thu, 25 Jan 2024 02:33:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fMsqvjEViv9RRh10z0is1zwobNRjYvD6E6w0uouAOmU=; b=O0yyhMS+Wtuj Dk+Mst8F7RIxaTKmanye/OFB8tsOKI7bFMuqKwMaJ0dFWIMQXZ8jOB8Huq8RIjjZbT4tPPTimENiz 8rccjKuEE4Y8t+SJedESjOMGMnQkcMLn3Ow9WVhvFzE4/ikCb3mdi15F11s9qLaicFAgnxOXNdHAf BVzNn2AuDE4dsRGEs7EZyLIT/Oj5h72IryYHvr9OXHONjMavUL7zL9HEFIQ8f3Gdv2KwN7fY4auFG KmIU8X/09FH8RUV1K7psFVBalvfb8i1M+DzPd2spG8eha8K17kTf4wpTHTo8s0C646ffwV7+1x8r/ RH0Zcr0i0bmBfWUJi+/ZxQ==; In-Reply-To: (message from Drew Adams on Wed, 24 Jan 2024 22:05:10 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278834 Archived-At: > From: Drew Adams > CC: "68693@debbugs.gnu.org" <68693@debbugs.gnu.org> > Date: Wed, 24 Jan 2024 22:05:10 +0000 > > > > > Thanks, fixed on the emacs-29 branch. > > > > > > > > Use "M-x profiler-find-profile". > > > > > > Thx. A suggestion would be to also add > > > that to the menu-bar menu (if you didn't > > > also do that just now). > > > > I don't think it should be on the menu, for the same reason it doesn't > > have a key binding: this is a relatively rare command, used only be > > people who for some reason receive profiles from others. Saving a > > profile, by contrast, is a much more frequent operation. > > I guess I don't understand why. Why would > you save a profile if you don't want to > later access it? You'd save a profile if you want to send it to someone else, or post it in its raw form as part of a bug report. If you want to just save it for yourself, you can save its textual representation via write-region. Then it will be a text file that you can look at with any text viewer. > If you delete a profiler report buffer then > you have to profile all over again, to > revisit it. No, see above. > I haven't been using profiler, so I don't > really understand its use, I guess. What > am I missing? Why is saving a frequent > operation but using (revisiting) a saved > profile is rare? I tried to explain that, see above.