perf record and perf stat support the -p option which you can use to specify the PID of the process to attach to. For example , the command:
perf stat -p 3129
tells perf stat to attach to the currently running process with PID 3129.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more