qingjinlyc
qingjinlyc

Reputation: 185

What kind of memory does Android Studio's Memory Monitor show?

We are using the built-in memory monitor in android studio to walk through the memory usage of our mobile game. But the result shows that our game is allocated with only tens of MB memory. However, as far as we have known, our game consumes 200 MB+ memory when it is running on PC(via PC platform for the game). So my question is what type of memory is the memory monitor showing?

PS: I have very limited knowledge on android memory system :)

enter image description here

Upvotes: 1

Views: 137

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191738

I believe what you are seeing is called the heap. This amount can change amongst various Android devices and can be increased in applications running on API Level 11+ by adding android:largeHeap="true" on the <application> element in the manifest to request a larger-than-normal heap size.

See this post for additional information: Android heap size on different phones/devices and OS versions

Upvotes: 1

Related Questions