Last active
November 20, 2015 11:35
-
-
Save fillano/411bc51f0bfe371f7736 to your computer and use it in GitHub Desktop.
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
(function(p){alert(function(t){var ret=[];for(var i in t)if(typeof t[i]!=='function'&&t[i]>0)ret.push({name:i,value:t[i]});return ret}(p).sort(function(a,b){return a.value-b.value}).map(function(d,i,a){if(i>0){return d.name+':'+(d.value-a[i-1].value)}else{return d.name+':0'}}).join('\n'))})(performance.timing) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
copy&paste to browser's dev console and run. will 'alert' the sorted performance.timing info with calculated diff of timestamp from previous step.