sampling and reading
i am working on a project where i need to find program counters for every 100M instructions.
i have used the following command to record the event
perf record -e instructions -c 100000000 ./filename
now, since counters are counted every 100M instructions, i read file using 'perf report'. But i get results in some percentage form and not in numerical numbers format.
i wish to read the file and gather the perforamance counter statistics. Plz suggest how to get the desired results.
thanks
Quoted 5 lines · Arnav
i am working on a project where i need to find program counters for every 100M instructions.
i have used the following command to record the event
Quoted 8 lines
perf record -e instructions -c 100000000 ./filename
now, since counters are counted every 100M instructions, i read file using 'perf report'. But i get results in some percentage form and not in numerical numbers format.
i wish to read the file and gather the perforamance counter statistics. Plz suggest how to get the desired results.
Use perf script instead of perf report.
-Andi
Signature · 1 line
[email protected] -- Speaking for myself only
Hi Arnav,
Quoted 5 lines · Arnav
i am working on a project where i need to find program counters for every 100M instructions.
i have used the following command to record the event
Quoted 8 lines
perf record -e instructions -c 100000000 ./filename
now, since counters are counted every 100M instructions, i read file using 'perf report'. But i get results in some percentage form and not in numerical numbers format.
i wish to read the file and gather the perforamance counter statistics. Plz suggest how to get the desired results.
How about using
perf report --show-total-period
?
Thanks,
Namhyung