Confirmed users
1,345
edits
Nnethercote (talk | contribs) |
Nnethercote (talk | contribs) No edit summary |
||
Line 127: | Line 127: | ||
FooBarStats *stats) const; | FooBarStats *stats) const; | ||
You could even put the <tt>nsMallocSizeOfFun</tt> in < | You could even put the <tt>nsMallocSizeOfFun</tt> in <tt>FooBarStats</tt> to reduce the number of arguments. | ||
Sometimes it's difficult and/or not worth measuring every member of an object of in a <tt>Foo::SizeOfExcludingThis</tt> method. This is ok, but it's worth adding a comment explaining this to the method. | Sometimes it's difficult and/or not worth measuring every member of an object of in a <tt>Foo::SizeOfExcludingThis</tt> method. This is ok, but it's worth adding a comment explaining this to the method. |