Platform/Memory Reporting: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 127: Line 127:
                                   FooBarStats *stats) const;
                                   FooBarStats *stats) const;


You could even put the <tt>nsMallocSizeOfFun</tt> in <code>FooBarStats</code> to reduce the number of arguments.
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.
Confirmed users
1,345

edits

Navigation menu