Return "power" utilization per process in ChromeUtils.requestProcInfo()
Categories
(Core :: DOM: Core & HTML, 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?
Reporter | ||
Comment 1•1 year ago
|
||
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?
Comment 2•1 year ago
|
||
(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.
Description
•