blob: 89d6a68ec1c696ac3b2c283612a186a448887601 [file] [log] [blame]
page.title=HPROF Converter
parent.title=Tools
parent.link=index.html
@jd:body
<p>
The <code>hprof-conv</code> tool converts the HPROF file that is
generated by the Android SDK tools to a standard format so you
can view the file in a profiling tool of your choice. </p>
<pre> hprof-conv [-z] &lt;infile&gt; &lt;outfile&gt;</pre>
<p>
You can use "-" for <code>&lt;infile&gt;</code> or <code>&lt;outfile&gt;</code>
to specify stdin or stdout.
</p>
<p>
You can use "-z" to filter out zygote allocations shared by all applications.
</p>
<p class="note"><strong>Note:</strong> Android Studio provides integrated access to this conversion
process. To convert a heap dump to standard HPROF format in Android Studio, right-click a heap
snapshot in the <em>Captures</em> view and select <strong>Export to standard .hprof</strong>. </p>