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

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.

主站蜘蛛池模板: 揭西县| 信宜市| 铁岭县| 苍溪县| 米脂县| 鄂托克前旗| 嘉禾县| 晋州市| 长葛市| 金沙县| 闸北区| 防城港市| 大安市| 重庆市| 汾阳市| 绥江县| 夏津县| 三门县| 英超| 文山县| 涞水县| 安顺市| 太原市| 外汇| 呼玛县| 垦利县| 安义县| 龙岩市| 宾川县| 洪泽县| 深州市| 乐昌市| 临安市| 丰台区| 健康| 乐山市| 白山市| 神池县| 大余县| 乳源| 库伦旗|