GNU bug report logs -
#68693
26.3; (elisp) `Profiling': Say how to use (e.g. read) a saved profile
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 24 Jan 2024 17:49:01 UTC
Severity: normal
Found in version 26.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68693 in the body.
You can then email your comments to 68693 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68693
; Package
emacs
.
(Wed, 24 Jan 2024 17:49:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 24 Jan 2024 17:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The node says only this:
You can save a profile to a file using 'C-x C-w'.
The doc says nothing about how to make use of such a saved profile, in
particular, how to read it into the profiler UI again.
I naively tried visiting the file and then `M-x
profiler-report-mode'. But that just showed a single line of 68K
characters.
In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.19045
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Wed, 24 Jan 2024 19:37:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Wed, 24 Jan 2024 19:37:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 68693-done <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> Date: Wed, 24 Jan 2024 17:48:17 +0000
>
> The node says only this:
>
> You can save a profile to a file using 'C-x C-w'.
>
> The doc says nothing about how to make use of such a saved profile, in
> particular, how to read it into the profiler UI again.
Thanks, fixed on the emacs-29 branch.
> I naively tried visiting the file and then `M-x
> profiler-report-mode'. But that just showed a single line of 68K
> characters.
Use "M-x profiler-find-profile".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68693
; Package
emacs
.
(Wed, 24 Jan 2024 19:56:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 68693-done <at> debbugs.gnu.org (full text, mbox):
> 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).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68693
; Package
emacs
.
(Wed, 24 Jan 2024 20:15:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 68693 <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> CC: "68693-done <at> debbugs.gnu.org" <68693-done <at> debbugs.gnu.org>
> Date: Wed, 24 Jan 2024 19:55:24 +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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68693
; Package
emacs
.
(Wed, 24 Jan 2024 22:06:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 68693 <at> debbugs.gnu.org (full text, mbox):
> > > 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?
OK, you might want to compare two profiles,
with `=', but I'd think that would be less
common than looking again at a profile that
you saved.
If you delete a profiler report buffer then
you have to profile all over again, to
revisit it. Comparing has a key (`='), but
just revisiting doesn't. Why?
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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68693
; Package
emacs
.
(Thu, 25 Jan 2024 07:35:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 68693 <at> debbugs.gnu.org (full text, mbox):
> From: Drew Adams <drew.adams <at> oracle.com>
> CC: "68693 <at> debbugs.gnu.org" <68693 <at> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 22 Feb 2024 12:24:15 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.