dstat plugins for Raspberry Pi
Copy to one of
and run something like
dstat --time -a --cpufreq --rpi-thermal 5