I’m trying to measure power consumption in Firefox using automation. My goal is to get power consumption metrics for specific webpage loads.
What I’ve tried:
- Using Puppeteer with Firefox’s profiler:
- Enabled power profiling preferences
- Used the Profiler CDP commands
- Got profile data but no power metrics
I know Firefox DevTools has power profiling capabilities in the Performance panel, but I need to access this programmatically. Is there a way to:
- Access the same power metrics that Firefox’s Performance panel shows?
- Get power consumption data through Firefox’s debugging protocol or any other API?
- Enable and collect power profiling data in an automated way?
Any guidance on the correct approach would be greatly appreciated!