Performance:Leak Tools: Difference between revisions

m
Line 35: Line 35:
Because it is based on instrumentation, it is not reliable for gathering aggregate statistics. (In spite of this, it is currently used for the leak stats on tinderbox, although a trace-malloc based replacement is in development.) However, it is by far the best tool we have for debugging leaks of reference counted objects, which are the leaks in Mozilla that can entrain the largest object graphs.
Because it is based on instrumentation, it is not reliable for gathering aggregate statistics. (In spite of this, it is currently used for the leak stats on tinderbox, although a trace-malloc based replacement is in development.) However, it is by far the best tool we have for debugging leaks of reference counted objects, which are the leaks in Mozilla that can entrain the largest object graphs.


These tools on Windows, Mac (PPC and Intel), and Linux (x86), although  nsCOMPtr logging doesn't work on Windows (?) and Mac and Linux stack traces require some post-processing (see below). In optimized builds they can be built with --enable-logrefcnt.
These tools work on Windows, Mac (PPC and Intel), and Linux (x86), although  nsCOMPtr logging doesn't work on Windows (?) and Mac and Linux stack traces require some post-processing (see [[#Post-processing of stack traces|below]]). In optimized builds they can be built with --enable-logrefcnt.


See below for a detailed description of how to use the refcount balancer effectively.
See below for a detailed description of how to use the refcount balancer effectively.
Confirmed users
162

edits