Finding bottlenecks in javascript?

前端 未结 4 1605
南旧
南旧 2021-01-11 14:19

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

4条回答
  •  别那么骄傲
    2021-01-11 14:41

    Open your page in Chrome.

    Tools -> Developer tools -> Profiles

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

提交回复
热议问题