unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 68693@debbugs.gnu.org
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	[thread overview]
Message-ID: <86msstdfyz.fsf@gnu.org> (raw)
In-Reply-To: <SJ0PR10MB5488BAC2E0C62DF671CDA009F37B2@SJ0PR10MB5488.namprd10.prod.outlook.com> (message from Drew Adams on Wed, 24 Jan 2024 22:05:10 +0000)

> From: Drew Adams <drew.adams@oracle.com>
> 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.





      reply	other threads:[~2024-01-25  7:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24 17:48 bug#68693: 26.3; (elisp) `Profiling': Say how to use (e.g. read) a saved profile Drew Adams
2024-01-24 19:36 ` Eli Zaretskii
2024-01-24 19:55   ` Drew Adams
2024-01-24 20:14     ` Eli Zaretskii
2024-01-24 22:05       ` Drew Adams
2024-01-25  7:33         ` Eli Zaretskii [this message]

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-all from there: mbox

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86msstdfyz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68693@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).