- Mastering The Faster Web with PHP,MySQL,and JavaScript
- Andrew Caya
- 173字
- 2021-06-25 21:16:55
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.
- 多媒體CAI課件設計與制作導論(第二版)
- Advanced Machine Learning with Python
- C語言程序設計教程
- Objective-C Memory Management Essentials
- Node.js 10實戰(zhàn)
- Java程序設計實戰(zhàn)教程
- Mobile Web Performance Optimization
- Mastering Concurrency in Go
- 實用防銹油配方與制備200例
- Mastering OpenCV 4
- C#程序設計
- 精通Linux(第2版)
- Getting Started with React VR
- Maven for Eclipse
- C/C++代碼調(diào)試的藝術(第2版)