Fix multiple problems with counting memory for about:performance
Categories
(Toolkit :: Performance Monitoring, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
Details
Attachments
(16 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
I think that there's a problem with how the about:performance page collects memory information. It collects from a browsing context's wrapper. Which doesn't always exist meaning any JS memory is not counted. I think it's better to find the document's global object and the JS zone associated with that.
Assignee | ||
Comment 1•2 years ago
|
||
I want to remove CollectMemoryInfo(BrowsingContext*, _) and have all callers
use the one interface with document groups. I'm not sure how correct this
WorkerDebugger code is, hopefully this is no worse.
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Comment 6•2 years ago
|
||
Since the caller usually needs to know the zone anyway, this seems simpler
if we query based on the zone rather than the object.
Depends on D146676
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 10•2 years ago
|
||
This function is only called from this .cpp file so it can be static.
Depends on D146894
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 12•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 14•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 16•2 years ago
|
||
Sometimes this entry can be at the bottom of the table and therefore there's
no nextSibling.
Depends on D160341
Comment 17•2 years ago
|
||
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b589f7b55a27 pt 1. Test about:performance with web workers r=florian https://hg.mozilla.org/integration/autoland/rev/274a277dbb73 pt 2a. Provide GetGCHeapUsage r=jonco https://hg.mozilla.org/integration/autoland/rev/1400576fd80d pt 2b. Worker debugger can query the doc group r=dom-worker-reviewers,asuth,smaug https://hg.mozilla.org/integration/autoland/rev/9ad856e68af9 pt 3. Fix potential double-counting windows r=nika https://hg.mozilla.org/integration/autoland/rev/41f28233dff1 pt 4. Remove CollectMemoryInfo(RefPtr<BrowsingContext> &, _) r=nika https://hg.mozilla.org/integration/autoland/rev/34aeb07a6f67 pt 5. Include memory usage from JS's malloc and JIT usage r=jonco,nika https://hg.mozilla.org/integration/autoland/rev/7311c284f09f pt 6. Capture memory usage from the document global r=nika https://hg.mozilla.org/integration/autoland/rev/09290cd6713d pt 7. Add a test for memory in about:performance r=florian https://hg.mozilla.org/integration/autoland/rev/822684f1df76 pt 8. Query memory per zone r=jonco https://hg.mozilla.org/integration/autoland/rev/711128371fc0 pt 9. Don't count shared memory more than once r=jonco https://hg.mozilla.org/integration/autoland/rev/b7cd3ed1d21b pt 10. Count only the media resources belonging to the document r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/d702485e2dbc pt 11. Remove dead GetTabSizes function r=nika https://hg.mozilla.org/integration/autoland/rev/e6635f916ac9 pt 12. Make AddWindowTabSizes static r=nika https://hg.mozilla.org/integration/autoland/rev/cebb14585723 pt 13. Count all the JS memory for web workers r=jonco https://hg.mozilla.org/integration/autoland/rev/9d30f7b5bce0 pt 14. Test that workers memory usage is reported r=florian https://hg.mozilla.org/integration/autoland/rev/8f02fab27335 pt 15. Fix timing in a test leading to a failure r=florian
Comment 18•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b589f7b55a27
https://hg.mozilla.org/mozilla-central/rev/274a277dbb73
https://hg.mozilla.org/mozilla-central/rev/1400576fd80d
https://hg.mozilla.org/mozilla-central/rev/9ad856e68af9
https://hg.mozilla.org/mozilla-central/rev/41f28233dff1
https://hg.mozilla.org/mozilla-central/rev/34aeb07a6f67
https://hg.mozilla.org/mozilla-central/rev/7311c284f09f
https://hg.mozilla.org/mozilla-central/rev/09290cd6713d
https://hg.mozilla.org/mozilla-central/rev/822684f1df76
https://hg.mozilla.org/mozilla-central/rev/711128371fc0
https://hg.mozilla.org/mozilla-central/rev/b7cd3ed1d21b
https://hg.mozilla.org/mozilla-central/rev/d702485e2dbc
https://hg.mozilla.org/mozilla-central/rev/e6635f916ac9
https://hg.mozilla.org/mozilla-central/rev/cebb14585723
https://hg.mozilla.org/mozilla-central/rev/9d30f7b5bce0
https://hg.mozilla.org/mozilla-central/rev/8f02fab27335
Description
•