Performance:Leak Tools: Difference between revisions

Jump to navigation Jump to search
Line 159: Line 159:
'''Getting leak statistics'''.  To enable summary statistics, simply set XPCOM_MEM_LEAK_LOG to 1 (stdout), 2 (stderr), or a filename.  In this mode, trace-refcnt will tell you what types of objects leaked, but won't tell you why they leaked.
'''Getting leak statistics'''.  To enable summary statistics, simply set XPCOM_MEM_LEAK_LOG to 1 (stdout), 2 (stderr), or a filename.  In this mode, trace-refcnt will tell you what types of objects leaked, but won't tell you why they leaked.


'''Using the refcount balancer'''.  See the [http://www.mozilla.org/performance/leak-tutorial.html tutorial on finding leaks of XPCOM objects] for information on debugging leaks using the refcount balancer.
'''Using the refcount balancer'''.  See the [http://www-archive.mozilla.org/performance/leak-tutorial.html tutorial on finding leaks of XPCOM objects] for information on debugging leaks using the refcount balancer.


==== Leaksoup ====
==== Leaksoup ====
Confirmed users
621

edits

Navigation menu