Performance - Firefox Developer Tools 编辑
The Performance tool gives you insight into your site's general responsiveness, JavaScript and layout performance. With the Performance tool you create a recording, or profile, of your site over a period of time. The tool then shows you an overview of the things the browser was doing to render your site over the profile, and a graph of the frame rate over the profile.
You get four sub-tools to examine aspects of the profile in more detail:
- the Waterfall shows the different operations the browser was performing, such as executing layout, JavaScript, repaints, and garbage collection
- the Call Tree shows the JavaScript functions in which the browser spent most of its time
- the Flame Chart shows the JavaScript call stack over the course of the recording
- the Allocations view shows the heap allocations made by your code over the course of the recording. This view only appears if you checked "Record Allocations" in the Performance tool settings.
Getting started
- UI Tour
To find your way around the Performance tool, here's a quick tour of the UI.
- How to
- Basic tasks: open the tool, create, save, load, and configure recordings
Components of the Performance tool
- Frame rate
- Understand your site's overall responsiveness.
- Call Tree
- Find bottlenecks in your site's JavaScript.
- Allocations
- See the allocations made by your code over the course of the recording.
- Waterfall
- Understand the work the browser's doing as the user interacts with your site.
- Flame Chart
- See which JavaScript functions are executing, and when, over the course of the recording.
Scenarios
- Animating CSS properties
- Uses the Waterfall to understand how the browser updates a page, and how animating different CSS properties can affect performance.
- Intensive JavaScript
- Uses the frame rate and Waterfall tools to highlight performance problems caused by long-running JavaScript, and how using workers can help in this situation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论