aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/debugging
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/mozilla/debugging')
-rw-r--r--files/zh-cn/mozilla/debugging/existing_tools/index.html36
-rw-r--r--files/zh-cn/mozilla/debugging/index.html139
2 files changed, 0 insertions, 175 deletions
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
----
-<p>下面列出的工具可以帮助你<span class="long_text short_text" id="result_box" lang="zh-CN"><span>调试Firefox中因</span><span>性能和内存引发的</span><span>问题</span></span></p>
-<h2 id="SPS_-_Built-in_profiler">SPS - Built-in profiler</h2>
-<p><a href="/@api/deki/files/6129/=profiler.png" title="profiler.png"><img align="left" alt="profiler.png" class="internal lwrap" src="/@api/deki/files/6129/=profiler.png?size=thumb" style="width: 160px; height: 91px;"></a><strong>描述:</strong> 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.<br> <strong>用处:</strong> Figuring out where time is being spent in the code / what is hanging Firefox<br> <strong> URL:</strong> <a class="link-https" href="https://github.com/bgirard/Gecko-Profiler-Addon/raw/master/geckoprofiler.xpi" title="https://github.com/bgirard/Gecko-Profiler-Addon/raw/master/geckoprofiler.xpi">geckoprofiler.xpi on GitHub</a><br> <strong> 用法:</strong> 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 <a href="/en/Performance/Profiling_with_the_Built-in_Profiler" title="En/Performance/Profiling_with_the_Built-in_Profiler">Profiling with the built-in profiler</a>. The <a class="external" href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-profiling/" title="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-profiling/">profiling build</a> can be used to get accurate call stacks (currently Mac only).</p>
-<p> </p>
-<h2 id="aboutjank">about:jank</h2>
-<p><a href="/@api/deki/files/6128/=aboutjank.PNG" title="aboutjank.PNG"><img align="left" alt="aboutjank.PNG" class="internal lwrap" src="/@api/deki/files/6128/=aboutjank.PNG?size=webview" style="width: 148px; height: 159px;"></a><strong>描述:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>运行</span><span>内置的</span><span>分析器</span><span>并将</span><span>检索到的数据显示在</span></span>about:jank页面.<br> <strong>用处:</strong> 找出哪些代码在消耗时间,哪些代码让Firefox运行受阻.<br> <strong> URL:</strong> <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/aboutjank/" title="https://addons.mozilla.org/en-US/firefox/addon/aboutjank/">about:jank AMO下载</a><br> <strong> 用法:</strong> 首次打开about:jank页面激活分析器,然后刷新页面查看分析的数据.</p>
-<p> </p>
-<p> </p>
-<p> </p>
-<h2 id="abouttelemetry">about:telemetry</h2>
-<p><strong><a href="/@api/deki/files/6127/=aboutelemetry.png" title="aboutelemetry.png"><img align="left" alt="aboutelemetry.png" class="internal lwrap" src="/@api/deki/files/6127/=aboutelemetry.png?size=webview" style="width: 160px; height: 124px;"></a></strong><strong>描述:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>显示</span><span>当前配置文件</span><span>的</span><span>性能数据</span></span>:<span class="long_text short_text" id="result_box" lang="zh-CN"><span>直方图,</span></span>缓慢的SQL语句和启动时间线.<br> <strong>用处:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>获取</span><span>当前配置文件</span><span>的</span><span>性能数据.</span></span><br> <strong>URL:</strong> <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/abouttelemetry/" title="https://addons.mozilla.org/en-US/firefox/addon/abouttelemetry/">about:telemetry  AMO下载</a><br> <strong>用法:</strong> 确保选项"提交性能数据"已经开启 (选项 -&gt; 高级 -&gt;提交性能数据)然后打开about:telemetry.</p>
-<p> </p>
-<p> </p>
-<h2 id="aboutstartup">about:startup</h2>
-<p><strong><a href="/@api/deki/files/6130/=aboutstartup.PNG" title="aboutstartup.PNG"><img align="left" alt="aboutstartup.PNG" class="internal lwrap" src="/@api/deki/files/6130/=aboutstartup.PNG?size=thumb" style="width: 160px; height: 90px;"></a>描述:</strong> 在about:startup页面显示Firefox的<span class="long_text short_text" id="result_box" lang="zh-CN"><span>启动</span><span>计时</span></span>.<br> <strong>用处:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>获取</span><span>当前配置文件的</span><span>启动性能</span><span>信息.</span></span><br> <strong> URL:</strong> <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/about-startup/" title="https://addons.mozilla.org/en-US/firefox/addon/about-startup/">about:startup AMO下载</a><br> <strong> 用法:</strong> 安装扩展后打开about:startup.</p>
-<p> </p>
-<p> </p>
-<h2 id="aboutcc">about:cc</h2>
-<p><strong><a href="/@api/deki/files/6126/=aboutcc.PNG" title="aboutcc.PNG"><img align="left" alt="aboutcc.PNG" class="internal lwrap" src="/@api/deki/files/6126/=aboutcc.PNG?size=webview" style="width: 159px; height: 96px;"></a>描述:</strong> Analyzes the cycle collection graphs and helps find leaks (specially documents) and missing CC optimizations.<br> <strong>用处:</strong> 找出内存泄漏的页面.<br> <strong> URL:</strong> <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=726346" title="https://bugzilla.mozilla.org/show_bug.cgi?id=726346">about:cc bugzilla下载</a><br> <strong> 用法:</strong> 安装该扩展,重启, 打开about:cc.首先点击Run Cycle Collector,然后点击 Find Documents.</p><h2 id="aboutccdump">about:ccdump</h2>
-<p><strong><a href="/@api/deki/files/6125/=aboutccdump.png" title="aboutccdump.png"><img align="left" alt="aboutccdump.png" class="internal lwrap" src="/@api/deki/files/6125/=aboutccdump.png?size=thumb" style="width: 160px; height: 70px;"></a>描述:</strong> More graphical interface to about:cc. Helps analyze cycle collection graphs and finding leaks<br> <strong>用处:</strong> 找出引起内存泄漏的死循环.<br> <strong> URL:</strong> <a href="/en/Submitting_an_add-on_to_AMO" title="Submitting an add-on to AMO">about:ccdump  AMO下载</a><br> <strong> 用法:</strong> 查看 <a class="external" href="http://www.softwareishard.com/blog/planet-mozilla/hunting-zombie-memory-leaks-in-firefox/" title="http://www.softwareishard.com/blog/planet-mozilla/hunting-zombie-memory-leaks-in-firefox/">Jan Odvarko's post</a> 了解更多信息.</p>
-<p> </p>
-<h2 id="aboutnosy">about:nosy</h2>
-<p><strong><a class="external" href="http://www.visophyte.org/blog/wp-content/uploads/2012/02/about-nosy-overview-scaled.png" title="about-nosy-overview-scaled.png"><img align="left" alt="about-nosy-overview-scaled.png" class="lwrap" src="http://www.visophyte.org/blog/wp-content/uploads/2012/02/about-nosy-overview-scaled.png" style="width: 160px; height: 70px;"></a>描述:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>图形界面的</span><span>jsprobes</span><span>,</span><span>帮助</span><span>分析</span><span>哪个标签</span><span>最消耗资源</span></span>.<br> <strong>用处:</strong> 查看各标签和扩展的内存以及cpu使用情况.<br> <strong> URL:</strong> <a class="link-https" href="https://github.com/asutherland/about-nosy/" title="about:nosy on Github">about:nosy Github下载</a><br> <strong> 用法:</strong> 查看 <a class="external" href="http://www.visophyte.org/blog/2012/02/11/aboutnosy-can-now-show-cpu-usage-using-jsprobes/" title="http://www.visophyte.org/blog/2012/02/11/aboutnosy-can-now-show-cpu-usage-using-jsprobes/">Andrew Sutherland's post</a>获得更多详情. 注意: <a class=" link-https" href="https://clicky.visophyte.org/files/labs/about-nosy/" rel="freelink">https://clicky.visophyte.org/files/labs/about-nosy/</a> 上已有的版本只适合Firefox "Aurora" 12的早期版本使用.</p><h2 id="MemChaser">MemChaser</h2>
-<p><strong><a href="/@api/deki/files/6131/=memchaser.png" title="memchaser.png"><img align="left" alt="memchaser.png" class="internal lwrap" src="/@api/deki/files/6131/=memchaser.png?size=thumb" style="width: 160px; height: 44px;"></a>描述:</strong> 在附加组件栏(状态栏)显示GC/CC和内存使用等信息. 还可以切换内存报告记录.<br> <strong>用处:</strong> 在一个标准的浏览会话里跟踪记录垃圾回收和内存占用等信息<br> <strong> URL:</strong> <a href="/en/Submitting_an_add-on_to_AMO" title="Submitting an add-on to AMO">MemChaser AMO下载</a><br> <strong> 用法:</strong> 安装扩展并打开附加组建栏</p>
-<h2 id="MozRegression">MozRegression</h2>
-<p><strong>描述:</strong> 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.<br> <strong>用处:</strong> Finding the nightly regression range for a bug that you're not sure when was introduced.<br> <strong>URL:</strong> <a class="link-https" href="https://github.com/mozilla/mozregression/" title="https://github.com/mozilla/mozregression/">MozRegression on GitHub</a><br> <strong>用法:</strong> First find a nightly build date that you're sure the problem exists, and one where you're sure it doesn't. Then run <code>mozregression --good=yyyy-mm-dd --bad=yyyy-mm-dd</code> and the script will guide you on finding the regression.</p>
-<p> </p>
-<h2 id="Layout_painting_flash">Layout painting flash</h2>
-<p><strong>描述:</strong> 打开该选项后, Firefox中每次被重绘的元素都会以随机的背景颜色显示出来.<br> <strong>用处:</strong> <span class="long_text short_text" id="result_box" lang="zh-CN"><span>查找</span><span>不必要的</span></span>页面重绘<span class="long_text short_text" id="result_box" lang="zh-CN"><span>或</span><span>失效</span><span>问题</span></span><br> <strong>URL:</strong> 在about:config中将<em>nglayout.debug.paint_flashing</em> 设置为true<br> <strong>用法:</strong> 在about:config页面中配置, 更多信息请参考 <a class="external" href="http://msujaws.wordpress.com/2012/02/01/layout-paint-flashing-in-firefox/" title="http://msujaws.wordpress.com/2012/02/01/layout-paint-flashing-in-firefox/">这篇文章</a>.</p><h2 id="Logging_GCCC_times">Logging GC/CC times</h2>
-<p><strong>描述:</strong> 在错误控制台上显示GC/CC运行的时间.<br> <strong>用处:</strong> 查看垃圾回收/循环回收是否运行太长时间.<br> <strong>URL:</strong> 在about:config中将<em><span class="message">javascript.options.mem.log</span></em> 设置为true<br> <strong>用法:</strong> 在about:config页面中配置, 打开错误控制台查看记录的信息.</p>
-<p>{{ languages( { "en": "en/Debugging/Existing_Tools"} ) }}</p>
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
----
-<p>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.</p>
-<table class="topicpage-table">
- <tbody>
- <tr>
- <td colspan="2">
- <h2 class="Documentation" id="Documentation_topics">Documentation topics</h2>
- <h2 id="Debugging_on_top_of_the_Mozilla_platform">Debugging on top of the Mozilla platform</h2>
- <dl>
- <dt>
- <a href="/en-US/docs/Debugging_JavaScript" title="Debugging JavaScript">Debugging JavaScript code</a></dt>
- <dd>
- How to debug JavaScript code, with a focus on debugging code in the Mozilla project itself.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_a_XULRunner_Application" title="Debugging a XULRunner Application">Debugging a XULRunner application</a></dt>
- <dd>
- Tips and suggestions that will help you debug your <a href="/en-US/docs/XULRunner" title="XULRunner">XULRunner</a> based application.</dd>
- <dt>
- <a href="/en-US/docs/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko" title="">Debugging on Boot to Gecko</a></dt>
- <dd>
- Debugging Firefox OS (apps and the platform itself)</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Update_Problems" title="Debugging Update Problems">Debugging update problems</a></dt>
- <dd>
- Learn how to debug update problems in Mozilla-based applications.</dd>
- </dl>
- <h2 id="Debugging_the_Mozilla_platform">Debugging the Mozilla platform</h2>
- <h3 id="Using_debuggers_with_Mozilla">Using debuggers with Mozilla</h3>
- <dl>
- <dt>
- <a href="/en-US/docs/Debugging_Mozilla_on_Windows_FAQ" title="Debugging Mozilla on Windows FAQ">Debugging Mozilla on Windows FAQ</a></dt>
- <dd>
- Questions (and answers) about debugging Mozilla on Windows.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_on_Mac_OS_X" title="Debugging on Mac OS X">Debugging Mozilla on Mac OS X</a></dt>
- <dd>
- Questions (and answers) about debugging Mozilla on Mac OS X.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Mozilla_with_gdb" title="Debugging Mozilla on Linux FAQ">Debugging Mozilla with gdb</a></dt>
- <dd>
- gdb is our primary debugger on Mac and Linux.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Mozilla_with_lldb" title="Debugging Mozilla with lldb">Debugging Mozilla with lldb</a></dt>
- <dd>
- lldb is the new debugger on Mac.</dd>
- </dl>
- <h3 id="Advanced_debugging_techniques">Advanced debugging techniques</h3>
- <dl>
- <dt>
- <a href="/en-US/docs/Debugging_Mozilla_with_Valgrind" title="Debugging Mozilla with valgrind">Debugging Mozilla with valgrind</a></dt>
- <dd>
- valgrind is a memory debugger for Mac and Linux. It is slow, but good for tracking down difficult memory safety bugs.</dd>
- <dt>
- <a href="/en-US/docs/Debugging/Record_and_Replay_Debugging_Firefox" title="Debugging/Record and Replay Debugging Firefox">Replay debugging Firefox with VMWare Workstation</a></dt>
- <dd>
- How to setup record and replay debugging on Firefox, to help debug intermittent mochitest failures.</dd>
- </dl>
- <h3 id="Debugging_specific_parts_of_the_Mozilla_codebase">Debugging specific parts of the Mozilla codebase</h3>
- <dl>
- <dt>
- <a href="/en-US/docs/Debugging/Debugging_OpenGL" title="Debugging/Debugging OpenGL">Debugging OpenGL</a> {{gecko_minversion_inline("2.0")}}</dt>
- <dd>
- If you're working on code that involves OpenGL calls, and need to debug it, you can turn on a special OpenGL debugging mode.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Frame_Reflow" title="Debugging_Frame_Reflow">Debugging frame reflow</a> and <a href="/en-US/docs/Debugging_Table_Reflow" title="Debugging_Table_Reflow">Debugging table reflow</a></dt>
- <dd>
- Notes on debugging issues in Gecko's layout engine.</dd>
- </dl>
- <h2 id="Miscellaneous">Miscellaneous</h2>
- <dl>
- <dt>
- <a href="/en-US/docs/Debugging_Safari" title="Debugging Safari">Debugging Safari</a></dt>
- <dd>
- Some tips for debugging Safari</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Chrome" title="Debugging Chrome">Debugging Chrome</a></dt>
- <dd>
- Some tips for debugging Chrome</dd>
- <dt>
- <a href="/en-US/docs/Debugging_Internet_Explorer" title="Debugging Internet Explorer">Debugging Internet Explorer</a></dt>
- <dd>
- Some tips for debugging Internet Explorer</dd>
- </dl>
- </td>
- <td>
- <h3 id="Providing_useful_information_to_the_Mozilla_developers">Providing useful information to the Mozilla developers</h3>
- <dl>
- <dt>
- <a href="/en-US/docs/How_to_get_a_stacktrace_for_a_bug_report" title="How_to_get_a_stacktrace_for_a_bug_report">How to get a stacktrace for a bug report</a></dt>
- <dd>
- Useful information you can provide about a crash.</dd>
- <dt>
- <a href="/en-US/docs/Performance/Reporting_a_Performance_Problem" title="Performance/Reporting_a_Performance_Problem">Reporting a Performance Problem</a></dt>
- <dd>
- ...using the Gecko Profiler extension.</dd>
- <dt>
- <a href="/en-US/docs/Debugging_a_hang_on_OS_X" title="Debugging a hang on OS X">Debugging a hang on Mac OS X</a></dt>
- <dd>
- Collecting "samples" to attach to a bug.</dd>
- <dt>
- <a href="/en-US/docs/Remote_debugging" title="Remote_debugging">Remote debugging</a></dt>
- <dd>
- Core dumps and examples of remote debugging. Useful if a developer can't reproduce your crash.</dd>
- <dt>
- <a href="/en-US/docs/Mozilla/Debugging/HTTP_logging" title="/en-US/docs/Mozilla/Debugging/HTTP_logging">HTTP logging</a></dt>
- <dd>
- How to log HTTP network traffic for debugging purposes.</dd>
- </dl>
- <h2 class="Tools" id="Debugging_tools">Debugging tools</h2>
- <dl>
- <dt>
- <a href="/en-US/docs/Tools" title="Tools">Tools</a></dt>
- <dd>
- Assorted tools that will help you debug your code or web site.</dd>
- <dt>
- <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/" title="http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/">Download a debug build</a></dt>
- <dd>
- 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.</dd>
- </dl>
- <h2 id="Related_topics">Related topics</h2>
- <dl>
- <dt>
- <a href="/en-US/docs/Performance" title="Storage/Performance">Performance and profiling</a></dt>
- <dd>
- Troubleshooting performance problems.</dd>
- <dt>
- <a href="/en-US/docs/Debugging/Debugging_memory_leaks" title="Debugging memory leaks">Debugging memory leaks</a></dt>
- <dd>
- Learn about tools and techniques that will help you debug memory leaks.</dd>
- </dl>
- </td>
- </tr>
- </tbody>
-</table>
-<p> </p>