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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:92 次

字数:3672

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文