Performance:Leak Tools: Difference between revisions

Line 134: Line 134:
     .createInstance(Components.interfaces.nsICycleCollectorListener).allTraces())
     .createInstance(Components.interfaces.nsICycleCollectorListener).allTraces())


If you don't want to run JS garbage collection before cycle collection, use nsIDOMWindowUtils.cycleCollect method:
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
  getInterface(Components.interfaces.nsIDOMWindowUtils).
  cycleCollect(Components.classes["@mozilla.org/cycle-collector-logger;1"]
    .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.
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.
Confirmed users
157

edits