Confirmed users, Bureaucrats and Sysops emeriti
969
edits
m (Replace nsMallocSizeOfFun with mozilla::MallocSizeOf) |
|||
| Line 58: | Line 58: | ||
return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf); | return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf); | ||
} | } | ||
(Note that SizeOfExcludingThis and SizeOfIncludingThis aren't overrides of methods on a global base class that is common to all reporters. These names are just a convention that is commonly followed. (That said, note that for some classes these methods may be virtual.)) | |||
[http://mxr.mozilla.org/mozilla-central/source/mfbt/MemoryReporting.h mfbt/MemoryReporting.h] defines <tt>mozilla::MallocSizeOf</tt> as follows: | [http://mxr.mozilla.org/mozilla-central/source/mfbt/MemoryReporting.h mfbt/MemoryReporting.h] defines <tt>mozilla::MallocSizeOf</tt> as follows: | ||