Skip to content

Instantly share code, notes, and snippets.

@ZeroBugBounce
Created March 20, 2014 14:09
Show Gist options
  • Save ZeroBugBounce/9664544 to your computer and use it in GitHub Desktop.
Save ZeroBugBounce/9664544 to your computer and use it in GitHub Desktop.
Record both a timeline and profile your JS simultaneously
// just enter this on the console to record both for 3 seconds
(function() {
console.timeline();
console.profile();
setTimeout(function() {
console.timelineEnd();
console.profileEnd();
}, 3000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment