Performance:Leak Tools: Difference between revisions

→‎Cycle collector heap dump: update for https://bugzilla.mozilla.org/show_bug.cgi?id=714286
(→‎Cycle collector heap dump: update for https://bugzilla.mozilla.org/show_bug.cgi?id=714286)
Line 140: Line 140:
     .createInstance(Components.interfaces.nsICycleCollectorListener))
     .createInstance(Components.interfaces.nsICycleCollectorListener))


A file cc-edges-NNNN.log will be created in Firefox's current working directory (usually the current working directory where Firefox was started). This file contains a dump of the heap known to the cycle collector, which includes JS objects and also native C++ objects that participate in cycle collection.
This creates a file named cc-edges-NNNN.log and writes a dump of the heap known to the cycle collector, which includes JS objects and also native C++ objects that participate in cycle collection, to the file.


On Windows 7 and Vista, you typically must run Firefox as Administrator to create the file.
The file location changed in Firefox 12:
* Firefox 12 (including nightly builds after 2012-01-02) creates the file in the temp directory and prints the path to the file to the Error Console.
* Older builds created the file in Firefox's current working directory (usually the current working directory where Firefox was started). That meant that on Windows 7 and Vista, you typically had to run Firefox as Administrator to create the file.


=== Leak tools for medium-size object graphs ===
=== Leak tools for medium-size object graphs ===
Confirmed users
162

edits