Re: [PATCH 5/7] perf, tools, stat: Implement --metric-only mode

From: Andi Kleen
Date: Tue Mar 01 2016 - 13:52:03 EST


> > % perf stat -a -I 1000 --metric-only
> > 1.001452803 frontend cycles idle insn per cycle stalled cycles per insn branch-misses of all branches
> > 1.001452803 158.91% 0.66 2.39 2.92%
> > 2.002192321 180.63% 0.76 2.08 2.96%
> > 3.003088282 150.59% 0.62 2.57 2.84%
> > 4.004369835 196.20% 0.98 1.62 3.79%
> > 5.005227314 231.98% 0.84 1.90 4.71%
>
> could you please align values with the headers

They would align if they had enough leading digits.
perf stat has always right aligned numbers.

Presumably the field sizes could be shrunk, but in some extreme cases
you could still have that many digits. So it's better to keep it as it
is.

-Andi