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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 memory footprint. You can also see the rendering rate displayed as frames per | 67 memory footprint. You can also see the rendering rate displayed as frames per |
68 second (FPS). Note that the computation of render frames can be performed in | 68 second (FPS). Note that the computation of render frames can be performed in |
69 any process, but the rendering itself is always done in the top level | 69 any process, but the rendering itself is always done in the top level |
70 application process, so look for the rendering rate there.</p> | 70 application process, so look for the rendering rate there.</p> |
71 </section><section id="controlling-the-level-of-native-client-error-and-warning-
messages"> | 71 </section><section id="controlling-the-level-of-native-client-error-and-warning-
messages"> |
72 <h3 id="controlling-the-level-of-native-client-error-and-warning-messages">Contr
olling the level of Native Client error and warning messages</h3> | 72 <h3 id="controlling-the-level-of-native-client-error-and-warning-messages">Contr
olling the level of Native Client error and warning messages</h3> |
73 <p>Native Client prints warning and error messages to stdout and stderr. You can | 73 <p>Native Client prints warning and error messages to stdout and stderr. You can |
74 increase the amount of Native Client’s diagnostic output by setting the | 74 increase the amount of Native Client’s diagnostic output by setting the |
75 following <a class="reference external" href="http://en.wikipedia.org/wiki/Envir
onment_variable">environment variables</a>:</p> | 75 following <a class="reference external" href="http://en.wikipedia.org/wiki/Envir
onment_variable">environment variables</a>:</p> |
76 <ul class="small-gap"> | 76 <ul class="small-gap"> |
77 <li>NACL_DEBUG_ENABLE=1</li> | |
78 <li>PPAPI_BROWSER_DEBUG=1</li> | |
79 <li>NACL_PLUGIN_DEBUG=1</li> | 77 <li>NACL_PLUGIN_DEBUG=1</li> |
80 <li>NACL_PPAPI_PROXY_DEBUG=1</li> | |
81 <li>NACL_SRPC_DEBUG=[1-255] (use a higher number for more verbose debug output)<
/li> | 78 <li>NACL_SRPC_DEBUG=[1-255] (use a higher number for more verbose debug output)<
/li> |
82 <li>NACLVERBOSITY=[1-255]</li> | 79 <li>NACLVERBOSITY=[1-255]</li> |
83 </ul> | 80 </ul> |
84 </section></section><section id="basic-debugging"> | 81 </section></section><section id="basic-debugging"> |
85 <h2 id="basic-debugging">Basic debugging</h2> | 82 <h2 id="basic-debugging">Basic debugging</h2> |
86 <section id="writing-messages-to-the-javascript-console"> | 83 <section id="writing-messages-to-the-javascript-console"> |
87 <h3 id="writing-messages-to-the-javascript-console">Writing messages to the Java
Script console</h3> | 84 <h3 id="writing-messages-to-the-javascript-console">Writing messages to the Java
Script console</h3> |
88 <p>You can send messages from your C/C++ code to JavaScript using the PostMessag
e | 85 <p>You can send messages from your C/C++ code to JavaScript using the PostMessag
e |
89 call in the <a class="reference internal" href="/native-client/devguide/coding/m
essage-system.html"><em>Pepper messaging system</em></a>. When the | 86 call in the <a class="reference internal" href="/native-client/devguide/coding/m
essage-system.html"><em>Pepper messaging system</em></a>. When the |
90 JavaScript code receives a message, its message event handler can call | 87 JavaScript code receives a message, its message event handler can call |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 build a module into a .DLL.</p> | 544 build a module into a .DLL.</p> |
548 <section id="open-source-profiling-tools"> | 545 <section id="open-source-profiling-tools"> |
549 <h3 id="open-source-profiling-tools">Open source profiling tools</h3> | 546 <h3 id="open-source-profiling-tools">Open source profiling tools</h3> |
550 <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 | 547 <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 |
551 <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> | 548 <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> |
552 and <a class="reference external" href="http://www.chromium.org/nativeclient/how
-tos/limited-profiling-with-oprofile-on-x86-64">Linux</a> | 549 and <a class="reference external" href="http://www.chromium.org/nativeclient/how
-tos/limited-profiling-with-oprofile-on-x86-64">Linux</a> |
553 machines.</p> | 550 machines.</p> |
554 </section></section></section> | 551 </section></section></section> |
555 | 552 |
556 {{/partials.standard_nacl_article}} | 553 {{/partials.standard_nacl_article}} |
OLD | NEW |