Closed Bug 1216362 Opened 9 years ago Closed 9 years ago

include mAttrList in memory measurements of nsCSSSelectors

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(1 file)

In bug 1162535 comment 14 erahm found that nsAttrList objects were contributing significantly to dark memory, so we should measure them.
Attached patch patch (deleted) — Splinter Review
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8676011 - Flags: review?(erahm)
Attachment #8676011 - Attachment is patch: true
Comment on attachment 8676011 [details] [diff] [review] patch Review of attachment 8676011 [details] [diff] [review]: ----------------------------------------------------------------- r=me after fixing the |mValue| measurement. ::: layout/style/StyleRule.cpp @@ +292,5 @@ > + size_t n = 0; > + const nsAttrSelector* p = this; > + while (p) { > + n += aMallocSizeOf(p); > + n += mValue.SizeOfExcludingThisIfUnshared(aMallocSizeOf); This is going just keep measuring this->mValue. I think you want p->mValue.
Attachment #8676011 - Flags: review?(erahm) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: