Created
April 10, 2014 15:48
-
-
Save anonymous/10395915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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