Open Bug 1877952 Opened 1 years ago Updated 1 year ago

Return "power" utilization per process in ChromeUtils.requestProcInfo()

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

People

(Reporter: whimboo, Unassigned)

Details

The work Florian did for the Gecko Profiler to have power utilization included is great. I would also like to use it in a WebExtension (PerfChaser) with an experimental API and display the current power consumption in the sidebar. As such I would need a way to retrieve the power utilization as best per process. As Florian mentioned as of now only Apple Silicon provides this, while Intel shows numbers per CPU (which is less helpful).

As such could we let ChromeUtils.requestProcInfo() also return the power utilization per process?

Florian, given that the information is available in the Firefox Profiler is there some Gecko API that could be used by requestProcInfo() to retrieve this information?

Flags: needinfo?(florian)

(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #1)

Florian, given that the information is available in the Firefox Profiler is there some Gecko API that could be used by requestProcInfo() to retrieve this information?

No gecko API is currently available, we could move this code to toolkit/components/processtools/ProcInfo.mm and have the profiler call it from there.

Flags: needinfo?(florian)
You need to log in before you can comment on or make changes to this bug.