I am recording a performance counters frm linux using the command perf record.
I want to use the result perf.data
as an input to other programming apps. Do you know how shall I read and parse the data in perf.data
? Is there a way to transform it to .text
file or .csv
?
An example command definition that redirects service check performance data to a text file for later processing by another application is shown below:
There is builtin
perf.data
parser and printer inperf
tool of linux tools with subcommand "script".To convert
perf.data
fileTo convert output of perf record in other file (
perf record -o filename.data
) use-i
option:perf script
is documented atman perf-script
, available online at http://man7.org/linux/man-pages/man1/perf-script.1.html