What is the best way to profile javascript execution? [closed]

Solution 1:

Firebug

Firebug provides a highly detailed profiling report. It will tell you how long each method invocation takes in a giant (detailed) table.

console.profile([title])
//also see
console.trace()

You need to call console.profileEnd () to end your profile block. See the console API here: http://getfirebug.com/wiki/index.php/Console_API

Blackbird

Blackbird (official site) also has a simpler profiler (can be downloaded from here)

Solution 2:

Chrome's Developer Tools has a built-in profiler.