Home | History | Annotate | Download | only in docs

Lines Matching full:code

25 There is a <code>runhat</code> shell function, added by
26 <code>build/envsetup.sh</code>, that partially automates these steps. The
42 You can verify that you're running as root with the <code>id</code> command.
43 The response should look like <code>uid=0(root) gid=0(root)</code>. If not,
44 type <code>su</code> and try again. If <code>su</code> fails, you're out
55 Use <code>ps</code> or DDMS to determine the process ID of your application,
56 then send a <code>SIGUSR1</code> to the target process:
76 Use <code>ls</code> to check the file names, then <code>exit</code> to quit
81 <code>/data/misc/heap-dump-BLAH-BLAH.hprof</code> and
82 <code>.hprof-head</code>, where BLAH is a runtime-generated value
101 You now have the hprof dump in <code>dump.hprof</code>.
111 (For some builds, you can use <code>adb root</code> to restart the adb
115 appear in <code>/data/misc</code> (no <code>-head</code>), and upon
128 Summary: as above, use <code>mkdir</code> and <code>chmod</code>
130 Send the <code>SIGUSR1</code> or use the API call to initiate a dump.
131 Use <code>adb pull &lt;dump-file&gt;</code> and <code>adb shell rm
132 &lt;dump-file&gt;</code> to retrieve the file and remove it from the
136 The new API is in the <code>android.os.Debug</code> class:
142 your choice, e.g. <code>/sdcard/myapp.hprof</code>. Because you're
151 However, 1.6 introduced the <code>WRITE_EXTERNAL_STORAGE</code>
153 accustomed to writing profile data to <code>/sdcard</code>, you will
176 The <code>kill -10</code> (<code>SIGUSR1</code>) method of generating heap
186 Unlike the <code>SIGUSR1</code> approach, this does not require a rooted
188 <code>android:debuggable="true"</code> in the <code>&lt;application&gt;</code>
190 means you can write the data to a file on <code>/sdcard</code> without
191 needing the <code>WRITE_EXTERNAL_STORAGE</code> permission in your app.
193 The <code>runhat</code> shell function has been updated to use this.
199 and due to licensing restrictions the modified <code>hat</code> tool cannot
200 be distributed. A conversion tool, <code>hprof-conv</code>, can be used
205 <code>jhat</code>, which is available for free in the Sun JDK, and