Re: [PATCH 10/13] perf, tools, stat: Output JSON MetricExpr metric
From: Andi Kleen
Date: Tue Mar 21 2017 - 11:47:54 EST
> > % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-only
> > 1.000127077 0.9
> > 2.000301436 0.7
> > 3.000456379 0.0
>
> The comment above suggest I'll see 'original event as description' in this example??
Yes the latest code prints
% perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-only
# time freq_max_os_cycles %
1.000234103 65.0
2.000478612 75.2
3.000681286 37.4
4.000847224 2.9
-Andi