Re: [PATCHSET 0/5] perf report: Make --stat output more compact

From: Namhyung Kim
Date: Sun Apr 25 2021 - 14:07:54 EST


On Sat, Apr 24, 2021 at 5:20 AM Andi Kleen <ak@xxxxxxxxxxxxxxx> wrote:
>
> On Sat, Apr 24, 2021 at 04:00:55AM +0900, Namhyung Kim wrote:
> > Hi Andi,
> >
> > On Sat, Apr 24, 2021 at 3:46 AM Andi Kleen <ak@xxxxxxxxxxxxxxx> wrote:
> > >
> > > > So I added --skip-empty (and --no-skip-empty automatically) to suppres
> > > > the 0 output and add the event stats like below.
> > >
> > > I doubt we need the option for this.
> > >
> > > But if you change it I would add the percentages after the absolute values.
> >
> > What kind of percentages are you talking about?
>
> The percentage of that value to the total sum of all the counts.

Hmm.. do you want something like this?

TOTAL events: 20064
MMAP events: 239 ( 1.2%)
COMM events: 1518 ( 7.6%)
EXIT events: 1 (0.0%)
FORK events: 1517 (7.6%)
SAMPLE events: 4015 (20.0%)
MMAP2 events: 12769 (63.6%)
...