@vladh KDE has done a lot of work on this
https://blogs.kde.org/2024/04/23/powerdevil-in-plasma-6.0-and-beyond/
https://dot.kde.org/2022/03/10/lets-make-energy-efficient-software-reality
https://archive.fosdem.org/2023/schedule/event/energy_green_software_engineering/
https://archive.fosdem.org/2023/schedule/event/energy_power_profiling_firefox/
@thibaultmol Amazing, thanks so much for all these links! :)