Is there a way to visualize a stack of activity (actions in memory) on Android?

I am currently debugging my application, which is quite complicated and has up to 5 activity levels. To detect memory leaks (i.e. Actions that are not deleted from memory, even the end () is called because of some links that are stored somewhere). I want to check which actions are still stored in memory.

I am currently creating hprof dumps, but this is not very convenient, because every time I need to mount the SDK, copy the hprof dump file from the SD card to my computer, etc.

(Side note: I already tried to automate the extraction of my hprof file more easily, but I am on an unpacked device, and adb pull <hprof file>will not allow me / not.)

Therefore, I wonder if all I want to know is IF and WHICH, which still remain in my memory, is there a way through the Android API or any other way on the fly with which I can achieve this (list of all active actions of my application), programmatically.

+3
source share
2 answers

I do not see the ability to visualize the activity stack in Android itself.

0
source

call every time I need to mount sdcard, copy the hprof dump file from sdcard to my computer, etc.

You can use the Eclipse File Manager view when your phone is in debug mode to copy data from your device without installing SDCard.

0

Source: https://habr.com/ru/post/1751888/


All Articles