Reputation: 3596
I am trying to understand memory leak in the android app using android studio tools and mat.
I have taken a screen shot of android studio while running app and another after clicking GC button.
Now as a beginner in analysing memory leaks or using android studio tools for that matter I would like to understand the graphs below.
How can I determine by just looking at the graphs that my app has leaked memory?
In Image 1 - I opened my app landed on the HomeScreen went to a different activity performed an action (saving an image) then returned back.
In Image 2 - I clicked on the GC button.
Is my app leaking memory ? If no, are my steps proper or are there any specific steps to follow to check for memory leaks.
Kindly help, Thanks.
Upvotes: 1
Views: 3469
Reputation: 3388
In order to determine whether your app is leaking memory you must take a snapshot of your memory and dump the heap and check the allocation in the captures window
Upvotes: 0