Android heap dump via adb


     Early versions of Android supported sending a signal to the process to generate its heap dump, which was changed and isn't available anymore. However, there is another hook via activity manager to generate the heap snapshot

               adb shell am dumpheap pid file
               adb pull file

No comments: