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.
source
share