Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

How to programmatically access Firefox power consumption metrics?

  • Ingen svar
  • 0 har dette problem
more options

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: 1. 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: 1. Access the same power metrics that Firefox's Performance panel shows? 2. Get power consumption data through Firefox's debugging protocol or any other API? 3. Enable and collect power profiling data in an automated way?

Any guidance on the correct approach would be greatly appreciated!

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: 1. 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: 1. Access the same power metrics that Firefox's Performance panel shows? 2. Get power consumption data through Firefox's debugging protocol or any other API? 3. Enable and collect power profiling data in an automated way? Any guidance on the correct approach would be greatly appreciated!

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.