Track system performance for 2 seconds (perf)
perf stat -a sleep 2
Gathers and displays performance statistics (e.g., CPU usage, cache hits) for the entire system while the system is idle for 2 seconds.
perf stat -a sleep 2
Gathers and displays performance statistics (e.g., CPU usage, cache hits) for the entire system while the system is idle for 2 seconds.