perf stat: Add --interval-clear option
Adding --interval-clear option to clear the screen before next interval. Committer testing: # perf stat -I 1000 --interval-clear And, as expected, it behaves almost like: # watch -n 0 perf stat -a sleep 1 Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <frederic@kernel.org> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/20180606221513.11302-4-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Esse commit está contido em:

commit de
Arnaldo Carvalho de Melo

pai
f7fa827f5f
commit
9660e08ee8
@@ -178,6 +178,9 @@ Print count deltas for fixed number of times.
|
||||
This option should be used together with "-I" option.
|
||||
example: 'perf stat -I 1000 --interval-count 2 -e cycles -a'
|
||||
|
||||
--interval-clear::
|
||||
Clear the screen before next interval.
|
||||
|
||||
--timeout msecs::
|
||||
Stop the 'perf stat' session and print count deltas after N milliseconds (minimum: 10 ms).
|
||||
This option is not supported with the "-I" option.
|
||||
|
Referência em uma nova issue
Block a user