idlestat

measure CPU time in idle and operating states

Install

All systems
curl cmd.cat/idlestat.sh
Debian Debian
apt-get install idlestat
Ubuntu
apt-get install idlestat
image/svg+xml Kali Linux
apt-get install idlestat
Windows (WSL2)
sudo apt-get update sudo apt-get install idlestat
Raspbian
apt-get install idlestat

idlestat

measure CPU time in idle and operating states

Idlestat uses kernel FTRACE function to monitor and capture C-state and P-state transitions of CPUs over a time interval. It calculates the total, average, min and max times spend in each C-state, P-state for each CPU and in each CPU cluster. It also reports the times specific IRQs caused the CPU to exit idle state, per CPU and per-IRQ.