Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2014 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/10395915 to your computer and use it in GitHub Desktop.
Save anonymous/10395915 to your computer and use it in GitHub Desktop.
Cu.import("resource://gre/modules/jsdebugger.jsm");
addDebuggerToGlobal(this);
let browser = gBrowser.getBrowserForTab(gBrowser.selectedTab);
let contentWindow = browser.contentWindow;
let dbg = new Debugger(contentWindow);
let start = Date.now();
dbg.memory.captureDominatorTree(contentWindow)
let end = Date.now() - start;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment