Memory Analyzer Tool in android?

前端 未结 7 2116
醉酒成梦
醉酒成梦 2020-11-27 16:31

I just want to know how to work with Memory analyzer tool in android. Please tell me how to do this to know about memory leaks for a particular project. Can someone give me

7条回答
  •  情书的邮戳
    2020-11-27 16:55

    1. Open DDMS perspective in Eclipse.
    2. Select Devices tab.
    3. Choose a process you want to make a dump for.
    4. Click Dump HPROF file button. The dump will be made and MAT window will be opened, assuming MAT is installed.
    5. Choose Leak Suspects Report in the wizard window and click Finish.

    That's all. You'll se a list of possible leaks, but some of them are false-positive. I recommend you to run an activity you want to check leaks in several times and then run MAT again.

提交回复
热议问题