Re: [PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-24 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 22, 2021 at 10:15:48PM +0100, Jiri Olsa escreveu: > On Fri, Mar 19, 2021 at 03:01:55PM +0800, Jin Yao wrote: > > SNIP > > > 102107,,branch-misses,8012781751,100.00,4.15,of all branches > > > > This option can be enabled in perf config by setting the variable > > 'stat.no-cvs-summar

Re: [PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-22 Thread Jiri Olsa
On Fri, Mar 19, 2021 at 03:01:55PM +0800, Jin Yao wrote: SNIP > 102107,,branch-misses,8012781751,100.00,4.15,of all branches > > This option can be enabled in perf config by setting the variable > 'stat.no-cvs-summary'. > > # perf config stat.no-cvs-summary=true > > # perf config -l >

[PATCH v3 1/2] perf stat: Align CSV output for summary mode

2021-03-19 Thread Jin Yao
perf-stat has supported the summary mode. But the summary lines break the CSV output so it's hard for scripts to parse the result. Before: # perf stat -x, -I1000 --interval-count 1 --summary 1.001323097,8013.48,msec,cpu-clock,8013483384,100.00,8.013,CPUs utilized 1.001323097,270,,