Tutorials or examples for debugging Android memory

So, I blew up a bunch somewhere in my logical chain of the Android game that I make, it plays fine until the bunch randomly grows from ~ 3 MB to almost 30 MB, while the game hangs (quite understandably). I cracked this error several times for several days, turned systems on and off, and also played with both DDMS and Eclipse Memory Analyzer, and did not find anything, it is quite possible due to the fact that I don’t understand how to use these tools.

Does anyone know some good tutorials / examples for debugging Android memory? In particular, a bunch .

Thanks guys.

+4
source share
4 answers

This one seems to be based on this eclipse article, but is really focused on Android: http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html

+5
source

This article describes how to create a bunch of heaps and parse it using the Eclipse MAT. This will help you quickly find the most likely suspected memory leak.

HERE: http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/27/automated-heap-dump-analysis-finding-memory-leaks-with-one-click/

+3
source

In DDMS, you can use the allocation tracking tab to find out where you allocate memory in your code.

+3
source

Although not so much a debugging answer, it will definitely help .

The only tool I know about is the ddms profiling tool can help you track this issue

+1
source

Source: https://habr.com/ru/post/1341442/


All Articles