I\'m attempting to find a bottleneck in my Javascript. Basically I\'m developing a chrome extension written in Javascript which is taking 4-5 seconds to perform a task. Ther
I remember Google Chrome has a built-in JavaScript profiler. Or can't you use this for your extension? (I have never built Chrome extensions.)
Open your page in Chrome.
Tools -> Developer tools -> Profiles
Start Profiling (3rd button, grey circle on the status bar at the bottom)
You can try to use Profiler as it was mentioned before or Timeline. Timeline will help you if the time was spent in native code.
Perhaps it'd be a good idea to open the HTML files in Firefox instead of letting Chrome extensions handle it. That'd allow you to use Firebug to determine any causes, which would be very helpful.