OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="debugging"> | 3 <section id="debugging"> |
4 <span id="devcycle-debugging"></span><h1 id="debugging"><span id="devcycle-debug
ging"></span>Debugging</h1> | 4 <span id="devcycle-debugging"></span><h1 id="debugging"><span id="devcycle-debug
ging"></span>Debugging</h1> |
5 <p>This document describes tools and techniques you can use to debug, monitor, | 5 <p>This document describes tools and techniques you can use to debug, monitor, |
6 and measure your application’s performance.</p> | 6 and measure your application’s performance.</p> |
7 <div class="contents local" id="table-of-contents" style="display: none"> | 7 <div class="contents local" id="table-of-contents" style="display: none"> |
8 <p class="topic-title first">Table Of Contents</p> | 8 <p class="topic-title first">Table Of Contents</p> |
9 <ul class="small-gap"> | 9 <ul class="small-gap"> |
10 <li><p class="first"><a class="reference internal" href="#diagnostic-information
" id="id2">Diagnostic information</a></p> | 10 <li><p class="first"><a class="reference internal" href="#diagnostic-information
" id="id2">Diagnostic information</a></p> |
(...skipping 14 matching lines...) Expand all Loading... |
25 <li><a class="reference internal" href="#debugging-with-visual-studio" id="id10"
>Debugging with Visual Studio</a></li> | 25 <li><a class="reference internal" href="#debugging-with-visual-studio" id="id10"
>Debugging with Visual Studio</a></li> |
26 <li><p class="first"><a class="reference internal" href="#debugging-with-nacl-gd
b" id="id11">Debugging with nacl-gdb</a></p> | 26 <li><p class="first"><a class="reference internal" href="#debugging-with-nacl-gd
b" id="id11">Debugging with nacl-gdb</a></p> |
27 <ul class="small-gap"> | 27 <ul class="small-gap"> |
28 <li><a class="reference internal" href="#debugging-pnacl-pexes-pepper-35-or-late
r" id="id12">Debugging PNaCl pexes (Pepper 35 or later)</a></li> | 28 <li><a class="reference internal" href="#debugging-pnacl-pexes-pepper-35-or-late
r" id="id12">Debugging PNaCl pexes (Pepper 35 or later)</a></li> |
29 <li><a class="reference internal" href="#debugging-pnacl-pexes-with-older-pepper
-toolchains" id="id13">Debugging PNaCl pexes (with older Pepper toolchains)</a><
/li> | 29 <li><a class="reference internal" href="#debugging-pnacl-pexes-with-older-pepper
-toolchains" id="id13">Debugging PNaCl pexes (with older Pepper toolchains)</a><
/li> |
30 <li><a class="reference internal" href="#running-nacl-gdb" id="id14">Running nac
l-gdb</a></li> | 30 <li><a class="reference internal" href="#running-nacl-gdb" id="id14">Running nac
l-gdb</a></li> |
31 </ul> | 31 </ul> |
32 </li> | 32 </li> |
33 </ul> | 33 </ul> |
34 </li> | 34 </li> |
35 <li><p class="first"><a class="reference internal" href="#debugging-with-other-t
ools" id="id15">Debugging with other tools</a></p> | 35 <li><a class="reference internal" href="#debugging-with-other-tools" id="id15">D
ebugging with other tools</a></li> |
36 <ul class="small-gap"> | |
37 <li><a class="reference internal" href="#open-source-profiling-tools" id="id16">
Open source profiling tools</a></li> | |
38 </ul> | |
39 </li> | |
40 </ul> | 36 </ul> |
41 | 37 |
42 </div><h2 id="diagnostic-information">Diagnostic information</h2> | 38 </div><h2 id="diagnostic-information">Diagnostic information</h2> |
43 <h3 id="viewing-process-statistics-with-the-task-manager">Viewing process statis
tics with the task manager</h3> | 39 <h3 id="viewing-process-statistics-with-the-task-manager">Viewing process statis
tics with the task manager</h3> |
44 <p>You can use Chrome’s Task Manager to display information about a Native
Client | 40 <p>You can use Chrome’s Task Manager to display information about a Native
Client |
45 application:</p> | 41 application:</p> |
46 <ol class="arabic simple"> | 42 <ol class="arabic simple"> |
47 <li>Open the Task Manager by clicking the menu icon <img alt="menu-icon" src="/n
ative-client/images/menu-icon.png" /> and choosing | 43 <li>Open the Task Manager by clicking the menu icon <img alt="menu-icon" src="/n
ative-client/images/menu-icon.png" /> and choosing |
48 <strong>Tools > Task manager</strong>.</li> | 44 <strong>Tools > Task manager</strong>.</li> |
49 <li>When the Task Manager window appears, verify that the columns displaying | 45 <li>When the Task Manager window appears, verify that the columns displaying |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 process or a separate plugin process, rather than in Native Client. Building a | 466 process or a separate plugin process, rather than in Native Client. Building a |
471 module as a trusted Pepper plugin allows you to use standard debuggers and | 467 module as a trusted Pepper plugin allows you to use standard debuggers and |
472 development tools on your system, but when you’re finished developing the | 468 development tools on your system, but when you’re finished developing the |
473 plugin, you need to port it to Native Client (i.e., build the module with one | 469 plugin, you need to port it to Native Client (i.e., build the module with one |
474 of the toolchains in the NaCl SDK so that the module runs in Native Client). | 470 of the toolchains in the NaCl SDK so that the module runs in Native Client). |
475 For details on this advanced development technique, see <a class="reference exte
rnal" href="http://www.chromium.org/nativeclient/how-tos/debugging-documentation
/debugging-a-trusted-plugin">Debugging a Trusted | 471 For details on this advanced development technique, see <a class="reference exte
rnal" href="http://www.chromium.org/nativeclient/how-tos/debugging-documentation
/debugging-a-trusted-plugin">Debugging a Trusted |
476 Plugin</a>. | 472 Plugin</a>. |
477 Note that starting with the <code>pepper_22</code> bundle, the NaCl SDK for Wind
ows | 473 Note that starting with the <code>pepper_22</code> bundle, the NaCl SDK for Wind
ows |
478 includes pre-built libraries and library source code, making it much easier to | 474 includes pre-built libraries and library source code, making it much easier to |
479 build a module into a .DLL.</p> | 475 build a module into a .DLL.</p> |
480 <h3 id="open-source-profiling-tools">Open source profiling tools</h3> | |
481 <p>For the brave-hearted there are open source tools at <a class="reference exte
rnal" href="http://www.chromium.org/nativeclient">Chromium.org</a> that describe
how to do profiling on | |
482 <a class="reference external" href="https://sites.google.com/a/chromium.org/dev/
nativeclient/how-tos/profiling-nacl-apps-on-64-bit-windows">64-bit Windows</a> | |
483 and <a class="reference external" href="http://www.chromium.org/nativeclient/how
-tos/limited-profiling-with-oprofile-on-x86-64">Linux</a> | |
484 machines.</p> | |
485 </section> | 476 </section> |
486 | 477 |
487 {{/partials.standard_nacl_article}} | 478 {{/partials.standard_nacl_article}} |
OLD | NEW |