Search code examples
androidmemoryopengl-esddms

Android OpenGL memory usage profiling?


I'm struggling with some issues which I believer are memory related with my Android app, yet I can't seem to figure out how to get information on how much memory my app is using.

I have a suspicion that some textures I am loading are not getting cleared by the garbage collector, but I want to be able to test before I start blindly making changes.

I've been struggling with DDMS for hours, and while I can get it to connect, I can't make heads or tails of the output. The allocations only seems be showing me basic object allocations, whereas what I'm concerned about is what's going on with memory using by things like my openGL textures and audio files.

Any advice on profiling memory usage in openGL apps on Android would be much appreciated, thanks!


Solution

  • uhm have you call gldeletetexture on the textures you want to unload? you have to manually delete your texture( like your level background and such) if you don't plan to use it anymore.