Allocation Tracker</a> icon. You can also track allocations in the Android Device Monitor:</p>
<h3>Android Studio </h3>
<p>To use the <a href="{@docRoot}tools/studio/index.html#alloc-tracker">Allocation Tracker</a> in
Android Studio: </p>
<ol>
<li>Start your app on a connected device or emulator</li>
<li>Open the Android run-tme window, and view the free and allocated memory in the Memory
Monitor. </li>
<li>Click the Allocation Tracker icon
(<img src="{@docRoot}images/tools/studio-allocation-tracker-icon.png" style="vertical-align:bottom;margin:0;height:21px"/>) in the Memory Monitor tool bar to start and stop memory
allocations.
<p>Android Studio creates the allocation file with the filename
<code>Allocations-yyyy.mm.dd-hh.mm.ss.alloc</code> in the <em>Captures</em> tab. </p>
</li>
<li>Double-click the allocation file to open the Allocation viewer. </li>
<li>Identify which actions in your app are likely causing too much allocation and determine where
in your app you should try to reduce allocations and release resources.
</ol>
<h3>Device Monitor</h3>
<ol>
<li>Open the Device Monitor.
<p>From your <code><sdk>/tools/</code> directory, launch the <code>monitor</code> tool.</p>