Bug 747509 - include document ID and styled links tables in about:memory; r=njn

This commit is contained in:
Nathan Froyd 2012-06-07 20:31:00 -04:00
parent e119f284c3
commit 06b6f73982

View File

@ -9682,6 +9682,12 @@ nsDocument::DocSizeOfExcludingThis(nsWindowSizes* aWindowSizes) const
mAttrStyleSheet->DOMSizeOfIncludingThis(aWindowSizes->mMallocSizeOf) :
0;
aWindowSizes->mDOMOther +=
mStyledLinks.SizeOfExcludingThis(NULL, aWindowSizes->mMallocSizeOf);
aWindowSizes->mDOMOther +=
mIdentifierMap.SizeOfExcludingThis(NULL, aWindowSizes->mMallocSizeOf);
// Measurement of the following members may be added later if DMD finds it
// is worthwhile:
// - many!