From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- .../mozilla/debugging/existing_tools/index.html | 36 ------ files/zh-cn/mozilla/debugging/index.html | 139 --------------------- 2 files changed, 175 deletions(-) delete mode 100644 files/zh-cn/mozilla/debugging/existing_tools/index.html delete mode 100644 files/zh-cn/mozilla/debugging/index.html (limited to 'files/zh-cn/mozilla/debugging') diff --git a/files/zh-cn/mozilla/debugging/existing_tools/index.html b/files/zh-cn/mozilla/debugging/existing_tools/index.html deleted file mode 100644 index 055f003c2b..0000000000 --- a/files/zh-cn/mozilla/debugging/existing_tools/index.html +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: Existing Tools -slug: Mozilla/Debugging/Existing_Tools -translation_of: Mozilla/Debugging/Existing_Tools ---- -

下面列出的工具可以帮助你调试Firefox中因性能和内存引发的问题

-

SPS - Built-in profiler

-

profiler.png描述: Add-on that runs the built-in profiler, retrieves the data and parses it on a web service, displaying a call tree and a timeline with responsiveness measurements.
用处: Figuring out where time is being spent in the code / what is hanging Firefox
URL: geckoprofiler.xpi on GitHub
用法: After installing the add-on, click on the icon in the Add-ons bar (status bar) to open an widget with Start/Stop and Analyze buttons. More details at Profiling with the built-in profiler. The profiling build can be used to get accurate call stacks (currently Mac only).

-

 

-

about:jank

-

aboutjank.PNG描述: 运行内置的分析器并将检索到的数据显示在about:jank页面.
用处: 找出哪些代码在消耗时间,哪些代码让Firefox运行受阻.
URL: about:jank AMO下载
用法: 首次打开about:jank页面激活分析器,然后刷新页面查看分析的数据.

-

 

-

 

-

 

-

about:telemetry

-

aboutelemetry.png描述: 显示当前配置文件性能数据:直方图,缓慢的SQL语句和启动时间线.
用处: 获取当前配置文件性能数据.
URL: about:telemetry  AMO下载
用法: 确保选项"提交性能数据"已经开启 (选项 -> 高级 ->提交性能数据)然后打开about:telemetry.

-

 

-

 

-

about:startup

-

aboutstartup.PNG描述: 在about:startup页面显示Firefox的启动计时.
用处: 获取当前配置文件的启动性能信息.
URL: about:startup AMO下载
用法: 安装扩展后打开about:startup.

-

 

-

 

-

about:cc

-

aboutcc.PNG描述: Analyzes the cycle collection graphs and helps find leaks (specially documents) and missing CC optimizations.
用处: 找出内存泄漏的页面.
URL: about:cc bugzilla下载
用法: 安装该扩展,重启, 打开about:cc.首先点击Run Cycle Collector,然后点击 Find Documents.

about:ccdump

-

aboutccdump.png描述: More graphical interface to about:cc. Helps analyze cycle collection graphs and finding leaks
用处: 找出引起内存泄漏的死循环.
URL: about:ccdump  AMO下载
用法: 查看 Jan Odvarko's post 了解更多信息.

-

 

-

about:nosy

-

about-nosy-overview-scaled.png描述: 图形界面的jsprobes,帮助分析哪个标签最消耗资源.
用处: 查看各标签和扩展的内存以及cpu使用情况.
URL: about:nosy Github下载
用法: 查看 Andrew Sutherland's post获得更多详情. 注意: https://clicky.visophyte.org/files/labs/about-nosy/ 上已有的版本只适合Firefox "Aurora" 12的早期版本使用.

MemChaser

-

memchaser.png描述: 在附加组件栏(状态栏)显示GC/CC和内存使用等信息. 还可以切换内存报告记录.
用处: 在一个标准的浏览会话里跟踪记录垃圾回收和内存占用等信息
URL: MemChaser AMO下载
用法: 安装扩展并打开附加组建栏

-

MozRegression

-

描述: Python script that greatly helps you binary-search a regression bug through the nightly builds by automatically downloading and running each build with a fresh profile.
用处: Finding the nightly regression range for a bug that you're not sure when was introduced.
URL: MozRegression on GitHub
用法: First find a nightly build date that you're sure the problem exists, and one where you're sure it doesn't. Then run mozregression --good=yyyy-mm-dd --bad=yyyy-mm-dd and the script will guide you on finding the regression.

-

 

-

Layout painting flash

-

描述: 打开该选项后, Firefox中每次被重绘的元素都会以随机的背景颜色显示出来.
用处: 查找不必要的页面重绘失效问题
URL: 在about:config中将nglayout.debug.paint_flashing 设置为true
用法: 在about:config页面中配置, 更多信息请参考 这篇文章.

Logging GC/CC times

-

描述: 在错误控制台上显示GC/CC运行的时间.
用处: 查看垃圾回收/循环回收是否运行太长时间.
URL: 在about:config中将javascript.options.mem.log 设置为true
用法: 在about:config页面中配置, 打开错误控制台查看记录的信息.

-

{{ languages( { "en": "en/Debugging/Existing_Tools"} ) }}

diff --git a/files/zh-cn/mozilla/debugging/index.html b/files/zh-cn/mozilla/debugging/index.html deleted file mode 100644 index d3c90b5685..0000000000 --- a/files/zh-cn/mozilla/debugging/index.html +++ /dev/null @@ -1,139 +0,0 @@ ---- -title: 调试 -slug: Mozilla/Debugging -translation_of: Mozilla/Debugging ---- -

Debugging a project as large as Mozilla can be a daunting task. Fortunately, over the years, Mozilla developers have come up with not just technologies and features to help you debug code, but have devised tips and techniques that can help too. Also available are assorted tools that you can use when debugging.

- - - - - - - -
-

Documentation topics

-

Debugging on top of the Mozilla platform

-
-
- Debugging JavaScript code
-
- How to debug JavaScript code, with a focus on debugging code in the Mozilla project itself.
-
- Debugging a XULRunner application
-
- Tips and suggestions that will help you debug your XULRunner based application.
-
- Debugging on Boot to Gecko
-
- Debugging Firefox OS (apps and the platform itself)
-
- Debugging update problems
-
- Learn how to debug update problems in Mozilla-based applications.
-
-

Debugging the Mozilla platform

-

Using debuggers with Mozilla

-
-
- Debugging Mozilla on Windows FAQ
-
- Questions (and answers) about debugging Mozilla on Windows.
-
- Debugging Mozilla on Mac OS X
-
- Questions (and answers) about debugging Mozilla on Mac OS X.
-
- Debugging Mozilla with gdb
-
- gdb is our primary debugger on Mac and Linux.
-
- Debugging Mozilla with lldb
-
- lldb is the new debugger on Mac.
-
-

Advanced debugging techniques

-
-
- Debugging Mozilla with valgrind
-
- valgrind is a memory debugger for Mac and Linux. It is slow, but good for tracking down difficult memory safety bugs.
-
- Replay debugging Firefox with VMWare Workstation
-
- How to setup record and replay debugging on Firefox, to help debug intermittent mochitest failures.
-
-

Debugging specific parts of the Mozilla codebase

-
-
- Debugging OpenGL {{gecko_minversion_inline("2.0")}}
-
- If you're working on code that involves OpenGL calls, and need to debug it, you can turn on a special OpenGL debugging mode.
-
- Debugging frame reflow and Debugging table reflow
-
- Notes on debugging issues in Gecko's layout engine.
-
-

Miscellaneous

-
-
- Debugging Safari
-
- Some tips for debugging Safari
-
- Debugging Chrome
-
- Some tips for debugging Chrome
-
- Debugging Internet Explorer
-
- Some tips for debugging Internet Explorer
-
-
-

Providing useful information to the Mozilla developers

-
-
- How to get a stacktrace for a bug report
-
- Useful information you can provide about a crash.
-
- Reporting a Performance Problem
-
- ...using the Gecko Profiler extension.
-
- Debugging a hang on Mac OS X
-
- Collecting "samples" to attach to a bug.
-
- Remote debugging
-
- Core dumps and examples of remote debugging. Useful if a developer can't reproduce your crash.
-
- HTTP logging
-
- How to log HTTP network traffic for debugging purposes.
-
-

Debugging tools

-
-
- Tools
-
- Assorted tools that will help you debug your code or web site.
-
- Download a debug build
-
- Recent automatically compiled debug builds are available. Note that these are replaced frequently by our tinderboxes. The debug builds have "-debug" at the end of their file names.
-
- -
-
- Performance and profiling
-
- Troubleshooting performance problems.
-
- Debugging memory leaks
-
- Learn about tools and techniques that will help you debug memory leaks.
-
-
-

 

-- cgit v1.2.3-54-g00ecf