Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(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.value-a[i-1].value)}else{return':0'}}).join('\n'))})(performance.timing)

This comment has been minimized.

Copy link
Owner Author

fillano commented Nov 20, 2015

copy&paste to browser's dev console and run. will 'alert' the sorted performance.timing info with calculated diff of timestamp from previous step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.