Re: [PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 09:59:02AM +0800, 禹舟键 wrote: > 2018-01-25 20:27 GMT+08:00 Jiri Olsa : > > > On Thu, Jan 25, 2018 at 10:10:04AM +0100, ufo19890607 wrote: > > > > SNIP > > > > > --metric-only:: > > > Only print computed metrics. Print them in a single line. > > > diff

Re: [PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 09:59:02AM +0800, 禹舟键 wrote: > 2018-01-25 20:27 GMT+08:00 Jiri Olsa : > > > On Thu, Jan 25, 2018 at 10:10:04AM +0100, ufo19890607 wrote: > > > > SNIP > > > > > --metric-only:: > > > Only print computed metrics. Print them in a single line. > > > diff --git

Re: [PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread Jiri Olsa
On Thu, Jan 25, 2018 at 10:10:04AM +0100, ufo19890607 wrote: SNIP > --metric-only:: > Only print computed metrics. Print them in a single line. > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c > index 406f546ad74c..427f06dc35cc 100644 > --- a/tools/perf/builtin-stat.c > +++

Re: [PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread Jiri Olsa
On Thu, Jan 25, 2018 at 10:10:04AM +0100, ufo19890607 wrote: SNIP > --metric-only:: > Only print computed metrics. Print them in a single line. > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c > index 406f546ad74c..427f06dc35cc 100644 > --- a/tools/perf/builtin-stat.c > +++

[PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts after N milliseconds and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat --time 2000 -e cycles -a Performance counter stats for

[PATCH v2 2/2] perf stat: Add support to print counts after a period of time

2018-01-25 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts after N milliseconds and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat --time 2000 -e cycles -a Performance counter stats for 'system wide':