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

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.

主站蜘蛛池模板: 通海县| 禹州市| 平利县| 青海省| 西平县| 堆龙德庆县| 桑日县| 凌源市| 汉源县| 彰化县| 兴文县| 六盘水市| 志丹县| 彩票| 开化县| 分宜县| 昌邑市| 常州市| 屏东县| 镇雄县| 安阳县| 扎赉特旗| 望奎县| 甘泉县| 阳信县| 汉寿县| 云和县| 民勤县| 云梦县| 鄂托克旗| 米脂县| 临汾市| 洛扎县| 丰台区| 大悟县| 噶尔县| 浠水县| 岐山县| 潞城市| 涟源市| 亳州市|