perf record -p 1234 -- sleep 30

Category: Administration

perf record -p 1234 -- sleep 30

Record CPU profiling data for a process

Use `perf record -p 1234 -- sleep 30` to record CPU profiling data for a process. Helpful when you need this quickly on a Linux server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.