tags:

views:

81

answers:

1

Hi,

Can you please tell me how can I do memory profile for an android application? I want to find out how are the objects created and where did those created.

Thank you.

+2  A: 

You can find your answer here: http://stackoverflow.com/questions/3112671/android-memory-analysing-eclipse-memory-analyzer

Edi
Thanks. But is it possible to dump out the heap of my android application when a 'Force Close/Wait' dialog has poped up?
michael
You can use Debug.dumpHprofData() to dump the data from your Java code. You can see how to handle the uncaught exceptions here: http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application. However,
Edi
However, the "FC/Wait" dialog appears when you have a long operation on your UI thread and there is no way to know when that happens.
Edi