Closed
Bug 1177858
Opened 10 years ago
Closed 7 years ago
PerformanceStats should offer a memory probe
Categories
(Toolkit :: Performance Monitoring, defect)
Toolkit
Performance Monitoring
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Yoric, Unassigned)
References
(Blocks 1 open bug)
Details
For webpages, use `nsIMemoryReporter::sizeOfTab`.
For compartments, use `JSCompartment::addSizeOfIncludingThis`.
(my use case is for a toy addon that allows fast filtering, display and killing of high memory pages. My prefered UI wiould be something like:
listOfPerformanceObjectsJson <- Services.performance.memoryOfTabs([tabIds?])
)
Reporter | ||
Comment 2•10 years ago
|
||
That's almost feasible already, in non-e10s mode. See `nsIMemoryReporter::sizeOfTab`. You just need to provide the `nsIDOMWindow` instead of the `tabId`.
(I am having trouble actually figuring out how to use these apis. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIMemoryReporter. A js code sample would be awesome.)
Flags: needinfo?(dteller)
Reporter | ||
Comment 4•10 years ago
|
||
Let's ask the author.
Flags: needinfo?(dteller) → needinfo?(n.nethercote)
![]() |
||
Comment 5•10 years ago
|
||
I just searched for "sizeOfTab" on DXR and found two uses, one in test_memoryReporters.xul and one in memory.js. I'd look there. Once you've done that I'm happy to answer more specific questions.
Flags: needinfo?(n.nethercote)
Comment 6•7 years ago
|
||
about:performance is being redesigned; mass closing the bugs related to parts of the current about:performance page that we are not keeping.
Our goals with the redesign are to reduce the overhead caused by having the page opened, increase the reliability of the displayed information, and make the offered information actionable for most users. The back-end work is being tracked in bug 1419681.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•