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

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.

主站蜘蛛池模板: 明星| 富顺县| 九龙坡区| 利川市| 木兰县| 马边| 中牟县| 乐至县| 苍南县| 龙山县| 镇远县| 连山| 三门县| 罗山县| 米泉市| 方正县| 徐水县| 湖口县| 津南区| 宁陕县| 常德市| 金山区| 神池县| 建始县| 乌海市| 昭觉县| 白山市| 沅陵县| 天台县| 武冈市| 金昌市| 赞皇县| 织金县| 黎平县| 定州市| 高唐县| 东方市| 峨眉山市| 万源市| 安龙县| 浮梁县|