I am trying to profile a set of processes on my CPU. In order to be very precise I want to use the perf stat command to see how many CPU cycles my processes used.
This is different from top, where I only see the percentage of the CPU used in a snapshot.
Unfortunately I didn't find a way to profile multiple processes at the same time. Is this possible?
And as a second question: Is it possible to not only see the CPU cycles used, but also the total amount of CPU cycles (or the percentage) used in the same time interval?