sarm.c is the "I just need CPU stats and I need them RIGHT NOW" edition. It reads /proc/stat on Linux or uses the Mach kernel APIs on macOS
No daemons. No cron jobs. No sa1, sa2, sadc, compile it, run it, watch your CPUs do whatever they are doing.
https://gfc.rocks/ground/software/sarm-2.0.tgz