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

--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to