nucliweb
4/13/2015 - 10:06 PM

console.profile()

console.profile()

Chrome dev tools tip of the day: use console.profile() and a timeout to gather stats at particular points in your code. For example, a hamburger menu opening.

onClick: function() {
        console.profile('Hamburger Open');
        setTimeout(function() {
                console.profileEnd('Hamburger Open');
        }, 1000);
// Do some stuff
}

This will create an entry in the profiles pane of the dev tools when the code executes.