Re: [PATCH 1/3] perf sort: Keep output fields in the same level

From: Ingo Molnar
Date: Mon Mar 24 2025 - 03:28:52 EST



* 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?

BTW., the approximate 'event count' is a pretty uninformative value
these days, right? Might as well not clutter the screen with it.

Thanks,

Ingo