ik024
ik024

Reputation: 3596

Identifying Memory Leak in Android App

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.

Image 1 enter image description here

Image 2 enter image description here

Kindly help, Thanks.

Upvotes: 1

Views: 3469

Answers (1)

SaravInfern
SaravInfern

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

Related Questions