lkml.org 
[lkml]   [2018]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectperf stat: Add support to print counts for fixed times
Date
From: yuzhoujian <yuzhoujian@didichuxing.com>

Hi Jirka
And how can you control the output for perf stat, if I don't want to use the
"sleep" workload, like some user programs. I want to check the "cycles"
for this program when it just begin to run.

root@node10:/home$ gcc -g -o malloc malloc.c
root@node10:/home$ ./perf stat -e cycles -I 1000 --times-print 3 ./malloc &
[1] 32586
# time counts unit events
1.000094153 2,914,162,979 cycles
2.000323667 3,062,832,799 cycles
3.000443807 3,063,146,609 cycles

Best wishes

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