Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm.

This commit is contained in:
Nicholas Nethercote
2017-07-28 20:10:04 +10:00
parent 077aacba17
commit 59cb8e2717
33 changed files with 205 additions and 104 deletions

View File

@@ -220,10 +220,10 @@ HTMLAreaElement::IntrinsicState() const
}
size_t
HTMLAreaElement::SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
HTMLAreaElement::SizeOfExcludingThis(mozilla::SizeOfState& aState) const
{
return nsGenericHTMLElement::SizeOfExcludingThis(aMallocSizeOf) +
Link::SizeOfExcludingThis(aMallocSizeOf);
return nsGenericHTMLElement::SizeOfExcludingThis(aState) +
Link::SizeOfExcludingThis(aState);
}
JSObject*