Skip to content
Display the graph created by cycle collector.
Latest commit 1d9e74d May 11, 2012 @janodvarko Merge pull request #8 from mihaisucan/master
the simple wrapper for mochitests from mihaisucan/master
Failed to load latest commit information.
content Merge branch 'master' of git:// May 7, 2012
skin/classic Application header should not scroll Mar 16, 2012
.gitignore [ccdump-0.4.3] May 4, 2012
bootstrap.js Avoid warning about not specified encoding Apr 30, 2012
build.js Update loader and buld file Mar 30, 2012
install.rdf Fix min Firefox version Mar 13, 2012
simple-wrapper.js style changes as requested by Honza May 7, 2012


CCDump is a Firefox extension which display object graph created by cycle collector. After installation, open:


More Info

  • Bug 726346 - Implement a version of nsICycleCollectorListener for devtools


You can use ccdump to dump the object graph into a JSON file within Mozilla's mochitests. This is useful for debugging memory leaks in tests. Once you have the JSON you can import it into the addon UI for graph inspection.

Example usage:

function call_ccdump()
  let scope = {};
  let ccdump_path = "file:///home/mihai/src/ccdump";
  Services.scriptloader.loadSubScript(ccdump_path + "/simple-wrapper.js", scope);
  let ccdump = new scope.ccdump_wrapper({
    global: scope,
    ccdump_path: ccdump_path,
  });"/home/mihai/ccdump-dbg-memleaks-" +,
    function _onCcdumpSave() {
      ccdump = scope = null;

Instead of calling finish() in your test, invoke call_ccdump().

Something went wrong with that request. Please try again.