Closed
Bug 1486480
Opened 5 years ago
Closed 5 years ago
We don't have memory reporting for custom element data
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Right now we don't memory-report any members of nsExtendedDOMSlots (see FragmentOrElement::nsDOMSlots::SizeOfIncludingThis). That means we don't memory-report custom element data. In DMD, I am seeing multiple megabytes of this allocated in the chrome process, because we allocate it for every single XUL element.
Comment 1•5 years ago
|
||
One thing which complicates memory reporting here is that nsExtendedDOMSlots can be allocated separately or as part of nsDOMSlots (in which case the whole thing is FatSlots). XUL elements should use usually (always?) FatSlots.
Updated•5 years ago
|
Blocks: war-on-xbl
![]() |
Assignee | |
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
Comment on attachment 9004277 [details] Bug 1486480. Add memory reporting for custom element data. r=smaug Olli Pettay [:smaug] has approved the revision.
Attachment #9004277 -
Flags: review+
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9dc25841ff4f Add memory reporting for custom element data. r=smaug
Comment 6•5 years ago
|
||
Backed out changeset 9dc25841ff4f (Bug 1486480) for causing Assertion failure: extendedSlots, at /builds/worker/workspace/build/src/dom/base/FragmentOrElement.cpp Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=9dc25841ff4f96a31bb150fee517a589c02aa7c6&filter-resultStatus=usercancel&filter-resultStatus=runnable&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&selectedJob=196169048 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=196169048&repo=autoland&lineNumber=2969 Backout push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=edb57a49546ffb8911e718059e991342d3fd74be&filter-resultStatus=usercancel&filter-resultStatus=runnable&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry
Flags: needinfo?(bzbarsky)
![]() |
Assignee | |
Comment 7•5 years ago
|
||
Bah. OwnsExtendedSlots() returns true if there are no extended slots at all. And this is the only consumer, and moz_malloc_size_of is null-safe.
Flags: needinfo?(bzbarsky)
Updated•5 years ago
|
Priority: -- → P2
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/4292aeb328da Add memory reporting for custom element data. r=smaug
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4292aeb328da
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•