2012-07-20 08:42:26 -07:00
|
|
|
page.title=Device Monitor
|
2012-06-19 15:48:29 -07:00
|
|
|
@jd:body
|
|
|
|
|
2013-09-19 17:45:40 -07:00
|
|
|
<div id="qv-wrapper">
|
|
|
|
<div id="qv">
|
|
|
|
<h2>See also</h2>
|
|
|
|
|
|
|
|
<ol>
|
|
|
|
<li><a href="{@docRoot}tools/debugging/debugging-memory.html"
|
|
|
|
>Investigating Your RAM Usage</a></li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2012-07-20 08:42:26 -07:00
|
|
|
<p>Android Device Monitor is a stand-alone tool that provides a graphical user interface for
|
2012-06-19 15:48:29 -07:00
|
|
|
several Android application debugging and analysis tools. The Monitor tool does not
|
2015-03-31 16:30:02 -07:00
|
|
|
require installation of an integrated development environment, such as Android Studio, and
|
|
|
|
encapsulates the following tools:</p>
|
2012-06-19 15:48:29 -07:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="{@docRoot}tools/debugging/ddms.html">DDMS</a></li>
|
|
|
|
<li><a href="gltracer.html">Tracer for OpenGL ES</a></li>
|
|
|
|
<li><a href="hierarchy-viewer.html">Hierarchy Viewer</a></li>
|
2013-09-16 11:31:25 -07:00
|
|
|
<li><a href="systrace.html">Systrace</a></li>
|
2012-06-19 15:48:29 -07:00
|
|
|
<li><a href="traceview.html">Traceview</a></li>
|
|
|
|
<li>Pixel Perfect magnification viewer</li>
|
|
|
|
</ul>
|
|
|
|
|
2013-09-19 17:45:40 -07:00
|
|
|
|
2012-06-19 15:48:29 -07:00
|
|
|
<h2 id="usage">Usage</h2>
|
|
|
|
|
2015-03-31 16:30:02 -07:00
|
|
|
<p>To start Device Monitor:</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>From Android Studio, choose <strong>Tools > Android Device Monitor</strong> or click
|
|
|
|
the Android Device Monitor icon
|
|
|
|
<img src="{@docRoot}images/tools/hierarchicalviewer-icon.png" alt=""/>.
|
|
|
|
</li>
|
|
|
|
<li>From the command line, in the SDK <code>tools/</code> directory, enter the following command:
|
2012-06-19 15:48:29 -07:00
|
|
|
<pre>monitor</pre>
|
2015-03-31 16:30:02 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2012-06-19 15:48:29 -07:00
|
|
|
|
2012-07-20 08:42:26 -07:00
|
|
|
<p>Start an Android emulator or connect an Android device via USB cable, and connect Device
|
2012-06-19 15:48:29 -07:00
|
|
|
Monitor to the device by selecting it in the <strong>Devices</strong> window.</p>
|
2013-09-19 17:45:40 -07:00
|
|
|
|
|
|
|
<p class="note"><strong>Note:</strong> Only one debugger can be connected to your device at a time.
|
|
|
|
If you're using ADT, you may need to close the debugging tool before launching the Device Monitor
|
|
|
|
in order for the device to be fully debuggable.</p>
|