blob: 5f7b5ce9a19b021cfedc6d45e36193ae869753bb [file] [log] [blame]
page.title=Device Monitor
@jd:body
<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>
<p>Android Device Monitor is a stand-alone tool that provides a graphical user interface for
several Android application debugging and analysis tools. The Monitor tool does not
require installation of an integrated development environment, such as Android Studio, and
encapsulates the following tools:</p>
<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>
<li><a href="systrace.html">Systrace</a></li>
<li><a href="traceview.html">Traceview</a></li>
<li>Pixel Perfect magnification viewer</li>
</ul>
<h2 id="usage">Usage</h2>
<p>To start Device Monitor:</p>
<ul>
<li>From Android Studio, choose <strong>Tools &gt; 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:
<pre>monitor</pre>
</li>
</ul>
<p>Start an Android emulator or connect an Android device via USB cable, and connect Device
Monitor to the device by selecting it in the <strong>Devices</strong> window.</p>
<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>