Skip to content

Instantly share code, notes, and snippets.

@fitzgen
Forked from anonymous/time-dominator-tree.js
Created April 10, 2014 15:48
Show Gist options
  • Save fitzgen/10395937 to your computer and use it in GitHub Desktop.
Save fitzgen/10395937 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