Open Bug 512469 Opened 15 years ago Updated 10 months ago

Need APIs for CPU and Memory Usage

Categories

(WebExtensions :: General, enhancement)

x86
Windows 2000
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: gboysko, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

We write a number of extensions which analyze Web page performance. Data that would be helpful for us to collect is the Firefox process's CPU usage and memory statistics. We have written custom XPCOM components to provide this data, but not for any other platforms than Windows. 

The request would be to provide an XPCOM component/service that exposes this information to a JavaScript extension. 

The types of information we are looking for are: current CPU usage (for the firefox process), current virtual memory size (pagefile usage) and current memory usage (working set). 

Reproducible: Always
I've would like also have access to this javascript API in standard browser page to enable/disable animation if the computer is to slow.
Severity: normal → S3
Product: Firefox → WebExtensions
You need to log in before you can comment on or make changes to this bug.