There is builtin perf.data parser and printer in perf tool of linux tools with subcommand "script".
To convert perf.data file
perf script > perf.data.txt
To convert output of perf record in other file (perf record -o filename.data) use -i option:
perf script -i filename.data > filename.data.txt
perf script is documented at man perf-script, available online at http://man7.org/linux/man-pages/man1/perf-script.1.html
Answer from osgx on Stack Overflowperf-script - Read perf.data (created by perf record) and display trace output This command reads the input file and displays the trace recorded. 'perf script' to see a detailed trace of the workload that was recorded.
There is builtin perf.data parser and printer in perf tool of linux tools with subcommand "script".
To convert perf.data file
perf script > perf.data.txt
To convert output of perf record in other file (perf record -o filename.data) use -i option:
perf script -i filename.data > filename.data.txt
perf script is documented at man perf-script, available online at http://man7.org/linux/man-pages/man1/perf-script.1.html
perf-script - Read perf.data (created by perf record) and display trace output This command reads the input file and displays the trace recorded. 'perf script' to see a detailed trace of the workload that was recorded.
perf data convert --to-json landed in April.
https://man7.org/linux/man-pages/man1/perf-data.1.html
Videos
Hi guys i am new to profiling and perf command and i was wondering what all these data i am getting from when i run
"perf record -g ./app"
"perf script > out.perf"
like what is the "382158" and cycles:p are if there is any refrence for this please help me out