官术网_书友最值得收藏!

JavaScript – Developer Tools

In order to measure performance and profile the JavaScript code contained in this book, we will use Google Chrome's built-in developer tools. Specifically, Chrome includes a timeline recorder and JavaScript CPU profiler that will allow you to identify bottlenecks in your JavaScript code. To activate these tools, please click on the three dots in the upper-right corner of the browser and click on the Developer Tools entry in the More Tools submenu, as shown:

Finding the ‘Developer Tools’ entry in the ‘More Tools’ section of Chrome’s main menu

Using the profiler is as easy as clicking the Record button and refreshing the page you wish to profile. You can then analyze the results in order to identify potential problems with the code:

Chrome’s timeline recorder and JavaScript CPU profiler

In Chapter 7, JavaScript and "Danger Driven Development", and Chapter 8, Functional JavaScript, we will be using this tool more extensively in order to measure and optimize JavaScript code performance in general.

主站蜘蛛池模板: 双桥区| 海林市| 桂林市| 岚皋县| 兴安县| 临清市| 光山县| 德安县| 交口县| 六盘水市| 淮滨县| 仪征市| 鹿泉市| 崇左市| 盐城市| 新晃| 内乡县| 银川市| 昌邑市| 溧水县| 石狮市| 阜康市| 确山县| 凯里市| 嵊泗县| 胶南市| 柏乡县| 铜山县| 闸北区| 明水县| 庐江县| 苍溪县| 禄劝| 绥棱县| 武陟县| 巴南区| 宜丰县| 昭平县| 兴业县| 团风县| 沈丘县|