ojob ojob.io/unix/parseCPUStats cmd="cat /proc/stat" interval=1000 dontShowFirst=true
Parses the content of /proc/stat of a Linux operating system into a list of percentages per cpu (including a first line for the cpu overall)
Name | Description |
---|---|
cmd | Command to obtain the result of /proc/stat (defaults to "cat /proc/stat") |
interval | Interval of sampling of /proc/stat in ms |
dontShowFirst | Boolean to indicate that the first line should not be shown until a previous sample if collected to properly calculate the difference |