Joe Fernandez | cb58e6b | 2012-07-20 08:42:26 -0700 | [diff] [blame] | 1 | page.title=Device Monitor |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 2 | @jd:body |
| 3 | |
Scott Main | a3f0e01 | 2013-09-19 17:45:40 -0700 | [diff] [blame] | 4 | <div id="qv-wrapper"> |
| 5 | <div id="qv"> |
| 6 | <h2>See also</h2> |
| 7 | |
| 8 | <ol> |
| 9 | <li><a href="{@docRoot}tools/debugging/debugging-memory.html" |
| 10 | >Investigating Your RAM Usage</a></li> |
| 11 | </ol> |
| 12 | </div> |
| 13 | </div> |
| 14 | |
| 15 | |
Joe Fernandez | cb58e6b | 2012-07-20 08:42:26 -0700 | [diff] [blame] | 16 | <p>Android Device Monitor is a stand-alone tool that provides a graphical user interface for |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 17 | several Android application debugging and analysis tools. The Monitor tool does not |
Rich Slogar | 2c35e92 | 2015-03-31 16:30:02 -0700 | [diff] [blame] | 18 | require installation of an integrated development environment, such as Android Studio, and |
| 19 | encapsulates the following tools:</p> |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 20 | |
| 21 | <ul> |
| 22 | <li><a href="{@docRoot}tools/debugging/ddms.html">DDMS</a></li> |
| 23 | <li><a href="gltracer.html">Tracer for OpenGL ES</a></li> |
| 24 | <li><a href="hierarchy-viewer.html">Hierarchy Viewer</a></li> |
Joe Fernandez | 25ef208 | 2013-09-16 11:31:25 -0700 | [diff] [blame] | 25 | <li><a href="systrace.html">Systrace</a></li> |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 26 | <li><a href="traceview.html">Traceview</a></li> |
| 27 | <li>Pixel Perfect magnification viewer</li> |
| 28 | </ul> |
| 29 | |
Scott Main | a3f0e01 | 2013-09-19 17:45:40 -0700 | [diff] [blame] | 30 | |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 31 | <h2 id="usage">Usage</h2> |
| 32 | |
Rich Slogar | 2c35e92 | 2015-03-31 16:30:02 -0700 | [diff] [blame] | 33 | <p>To start Device Monitor:</p> |
| 34 | |
| 35 | <ul> |
| 36 | <li>From Android Studio, choose <strong>Tools > Android Device Monitor</strong> or click |
| 37 | the Android Device Monitor icon |
| 38 | <img src="{@docRoot}images/tools/hierarchicalviewer-icon.png" alt=""/>. |
| 39 | </li> |
| 40 | <li>From the command line, in the SDK <code>tools/</code> directory, enter the following command: |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 41 | <pre>monitor</pre> |
Rich Slogar | 2c35e92 | 2015-03-31 16:30:02 -0700 | [diff] [blame] | 42 | </li> |
| 43 | </ul> |
| 44 | |
| 45 | |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 46 | |
Joe Fernandez | cb58e6b | 2012-07-20 08:42:26 -0700 | [diff] [blame] | 47 | <p>Start an Android emulator or connect an Android device via USB cable, and connect Device |
Joe Fernandez | 3e820be | 2012-06-19 15:48:29 -0700 | [diff] [blame] | 48 | Monitor to the device by selecting it in the <strong>Devices</strong> window.</p> |
Scott Main | a3f0e01 | 2013-09-19 17:45:40 -0700 | [diff] [blame] | 49 | |
| 50 | <p class="note"><strong>Note:</strong> Only one debugger can be connected to your device at a time. |
| 51 | If you're using ADT, you may need to close the debugging tool before launching the Device Monitor |
| 52 | in order for the device to be fully debuggable.</p> |