Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-04 Thread Changbin Du
On Tue, Mar 02, 2021 at 09:25:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 02, 2021 at 11:08:40AM +0900, Namhyung Kim escreveu: > > On Tue, Mar 2, 2021 at 4:19 AM Jiri Olsa wrote: > > > > > > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > > > This does follow two cha

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-04 Thread Changbin Du
On Mon, Mar 01, 2021 at 08:19:20PM +0100, Jiri Olsa wrote: > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > This does follow two changes: > > 1) Select appropriate unit between K/M/G. > > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > > > $ sudo ./p

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-02 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 02, 2021 at 11:08:40AM +0900, Namhyung Kim escreveu: > On Tue, Mar 2, 2021 at 4:19 AM Jiri Olsa wrote: > > > > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > > This does follow two changes: > > > 1) Select appropriate unit between K/M/G. > > > 2) Use 'cpu-sec' ins

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-02 Thread kajoljain
On 3/1/21 10:54 PM, Changbin Du wrote: > This does follow two changes: > 1) Select appropriate unit between K/M/G. > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > $ sudo ./perf stat -a -- sleep 1 > > Before: Unit 'M' is selected even the number is very small. >

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-01 Thread Namhyung Kim
On Tue, Mar 2, 2021 at 4:19 AM Jiri Olsa wrote: > > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > This does follow two changes: > > 1) Select appropriate unit between K/M/G. > > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > > > $ sudo ./perf stat

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-01 Thread Jiri Olsa
On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > This does follow two changes: > 1) Select appropriate unit between K/M/G. > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > $ sudo ./perf stat -a -- sleep 1 > > Before: Unit 'M' is selected even the numbe

[PATCH] perf stat: improve readability of shadow stats

2021-03-01 Thread Changbin Du
This does follow two changes: 1) Select appropriate unit between K/M/G. 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. $ sudo ./perf stat -a -- sleep 1 Before: Unit 'M' is selected even the number is very small. Performance counter stats for 'system wide': 4