* How to get perf stat output and redirect to a file rather than screen
@ 2013-06-27 17:47 Peipei Wang
2013-06-27 17:49 ` David Ahern
0 siblings, 1 reply; 2+ messages in thread
From: Peipei Wang @ 2013-06-27 17:47 UTC (permalink / raw)
To: perf group
Hi all.
I want to save the output of perf stat as a file, however, I 've tried
several ways, none of them works. Here is what I have tried.
My basic command is " timeout -s SIGINT 4s perf stat -p 32098". That
is using perf stat to capture process 32098 for 4 seconds.
1) use --output
http://comments.gmane.org/gmane.linux.kernel.perf.user/911
Best wishes.
Yours,
Wang Peipei
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to get perf stat output and redirect to a file rather than screen
2013-06-27 17:47 How to get perf stat output and redirect to a file rather than screen Peipei Wang
@ 2013-06-27 17:49 ` David Ahern
0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2013-06-27 17:49 UTC (permalink / raw)
To: Peipei Wang; +Cc: perf group
On 6/27/13 11:47 AM, Peipei Wang wrote:
> Hi all.
>
> I want to save the output of perf stat as a file, however, I 've tried
> several ways, none of them works. Here is what I have tried.
> My basic command is " timeout -s SIGINT 4s perf stat -p 32098". That
> is using perf stat to capture process 32098 for 4 seconds.
perf stat -o <stat-output-file> -p 32098
Also, instead of timeout ... you can run:
perf sat -o /tmp/perfstat.out -p 32098 -- sleep 4
That tells perf to profile process 32098 and do so for as long as the
workload is running where the workload is to sleep for 4 seconds.
David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-27 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-27 17:47 How to get perf stat output and redirect to a file rather than screen Peipei Wang
2013-06-27 17:49 ` David Ahern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).