Created
October 31, 2012 00:16
-
-
Save natecavanaugh/3984017 to your computer and use it in GitHub Desktop.
performance timing log
This file contains hidden or 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
var pt = A.one('#manageContentDialog').get('contentWindow.performance.timing'); | |
var inSec = function(v){return v /= 1000;}; | |
console.log('Network latency: %d, Entire load: %d, page load time: %d', inSec(pt.responseEnd - pt.fetchStart), inSec(pt.loadEventEnd-pt.navigationStart), inSec(pt.loadEventEnd-pt.responseEnd)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment