I was testing an Android application for memory leakage. But I have no idea How to test memory leakage in the application. And How would I know that app has memory leakage problem?
It is hard, if not possible, to test memory leak with manual testing. Even if you can catch it, you can not prove it.
- With a memory leak, an application will run slower and slower, consuming more and more memory.
We need to catch memory leak with tools, depends on which platform you are testing on, there are multiple options to choose from. Check out links below:
When using android studio, here's how you check for memory leaks these days:
- Start your app on a connected device or emulator.
- Select View > Tool Windows > Android Monitor.
- In the upper-left corner of Android Monitor, select the Monitors tab.
You may need to connect your device to your PC and run the application in debug mode. That means you will need to check out the source code as well.