Skip to content Skip to sidebar Skip to footer

Android Memory Analysis

I have to search for memory leaks in an Application at the moment and have a workflow problem. This ( http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.htm

Solution 1:

I had this issue on my setup also, it seems there is a certain series of steps that cause eclipse to default to saving to a file (instead of doing the conversion and opening it).

Anyway to fix it:

Preferences (The global Eclipse ones) -> Android -> DDMS -> HPROF Action -> set to "Open in Eclipse" (Mine was previously on "Save to Disk")

Solution 2:

Convert hprof file take from Android OS into standard hprof format. For this you can use hprof-conv tool that is located at AndrodiSDK/tools/hprof-conv.

Like this

hprof-conv android.hprof mat.hpof

And then open mat.hprof in Memory Analyzer.

Solution 3:

The error message indicates that there are additional details in the error log (Window > Show View > Error Log). Can you clear the log, then reproduce the problem, then see what if anything appears in the error log to help pinpoint the problem?

Post a Comment for "Android Memory Analysis"