Better diagnostics on entity performance / footprint

After several years I’ve accumulated many sensors and script, some might not be too efficient, thus causing performance issues (cpu increase, I/O increase, time delay etc) that is sucking the power of my host.

I’d like to see some stats on the entity level (sensor/script/automation etc) and be able to sort and identify specific places where I should focus my effort to make more efficient or consider dropping all together.