Re: [PATCH 1/3] perf sort: Keep output fields in the same level
From: Namhyung Kim
Date: Mon Mar 24 2025 - 20:27:10 EST
On Mon, Mar 24, 2025 at 08:28:31AM +0100, Ingo Molnar wrote:
>
> * Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> > > 3)
> > >
> > > It would also be nice to be able to Ctrl-C out of a 'perf top' instance
> > > that freezes the output or so. Or prints a snapshot in ASCII. Anything
> > > but what it does currently: it just exits and clears the xterm screen
> > > of all useful information...
> > >
> > > I have to use 'f' (how many people know about that feature?) and copy &
> > > paste anything interesting from the screen the hard way.
> >
> > Actually I was not aware of 'f' key. :) I think you can use 'P' to save
> > the current screen to a file.
>
> And I was not aware of the 'P' key. :-)
>
> Would be nice if it also printed column and meta information, i.e. if
> it included these lines:
>
> Samples: 1M of event 'cycles:P', 4000 Hz, Event count (approx.): 758731362801 lost: 0/0 drop: 0/0
> Overhead Shared Object Symbol
>
> or so?
Yep, maybe we can do the same as the stdio output.
#
#
# Total Lost Samples: 0
#
# Samples: 7 of event 'cycles'
# Event count (approx.): 3641468
#
# Overhead Command Shared Object Symbol
# ........ ....... ................ ..................................
#
>
> BTW., the approximate 'event count' is a pretty uninformative value
> these days, right? Might as well not clutter the screen with it.
Maybe. I don't look at the number so far but also don't feel the need
for removal.
Thanks,
Namhyung