Hey,
I wanted to know how loaded my ESPs were so I let the new AI overlords create an external component that tries to calculate exactly that: the load average over the last 1, 5 and 15 minutes, similar to linux’es load average.
It works quite well for ESP32 thansk to FreeRTOS tasks and ticks.
For esp2866, it uses the duration of the loop_time to approximate loads and lets you configure BASE and MAX load times that you can measure on your own devices.