Re: [PATCH 3/3] perf stat: Add --metric option

From: Jiri Olsa
Date: Thu Dec 12 2019 - 04:41:56 EST

On Wed, Dec 11, 2019 at 03:02:23PM -0800, Andi Kleen wrote:
> > Currently only one metric can be passed to perf stat command.
> It's near certain that users will want more.

right, it was just convenient for the rfc ;-)

but I wonder we could keep it that way anyway and have:

current way of using pre-defined metrics:
# perf stat -M m1,m2,m3

simple/fast way of checking on metric:
# perf stat -m 'm4=....'

metric from user file:
# perf stat -M m5,m6 --metric-file=path