lkml.org 
[lkml]   [2018]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] perf stat: Add support to print counts for fixed times
On Wed, Jan 24, 2018 at 10:03:08AM +0800, 禹舟键 wrote:
> Hi Jirka
> How can you control the output for perf stat, if the "--interval-print" is
> not 1000, eg. 2000, 3000, 5000.
>
> root@node10:/home$ ./perf stat -e cycles -a -I 2000 sleep 3
> # time counts unit events
> 2.001361101 695,569,361 cycles
> 3.003249250 57,904,006 cycles
> root@node10:/home$ ./perf stat -e cycles -a -I 2000 --times-print 3
> # time counts unit events
> 2.002784924 128,438,406
> cycles
> 4.004290885 93,128,097
> cycles
> 6.005726281 111,303,359 cycles


[jolsa@krava perf]$ sudo ./perf stat -e cycles -a -I 2000 --times-print 3
# time counts unit events
2.000161257 1,197,889,478 cycles
4.000424645 2,905,635,530 cycles
6.000589943 1,658,546,001 cycles
[jolsa@krava perf]$ sudo ./perf stat -e cycles -a -I 2000 sleep 6
# time counts unit events
2.000248489 1,224,257,116 cycles
4.000489261 3,171,435,328 cycles
6.000766440 4,092,029,501 cycles
6.916537222 563,745,072 cycles

jirka

\
 
 \ /
  Last update: 2018-01-24 08:39    [W:0.053 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site