Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding bottlenecks in javascript?

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. There's a lot of code involved in the task and using print statements / chrome built in dev tools just isnt working. The dev tools don't seem to even see my Javascript running. I'm wondering if anyone has any advice / tools they think could be of benefit?

like image 900
Skizit Avatar asked Jan 24 '11 15:01

Skizit


1 Answers

Open your page in Chrome.

Tools -> Developer tools -> Profiles

Start Profiling (3rd button, grey circle on the status bar at the bottom)

like image 55
smirkingman Avatar answered Sep 30 '22 12:09

smirkingman