Skip to content
This repository

Display the graph created by cycle collector.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 content
Octocat-spinner-32 skin
Octocat-spinner-32 .gitignore
Octocat-spinner-32 bootstrap.js
Octocat-spinner-32 build.js
Octocat-spinner-32 build.xml
Octocat-spinner-32 install.rdf
Octocat-spinner-32 license.txt
Octocat-spinner-32 package.json
Octocat-spinner-32 simple-wrapper.js


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.