Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ==> Memory Analysing ==> Eclipse memory analyzer?

I need to check my application for memory leaks, i also need to see the memory allocation of my application. I downloaded and installed eclipse memory analyzer, and it looks like the first step is to open a heap dump. But what is a heap dump, how can i create a heap dump. And how exactly am i going to use this software, I did some googling but i couldn't find any useful information thanks

like image 445
aryaxt Avatar asked Jun 24 '10 18:06

aryaxt


People also ask

How do I use the memory analyzer tool in Eclipse?

Use the Eclipse Memory Analyzer You may need to refresh your project (F5 on the project). Double-click the file and select the Leak Suspects Report. The overview page allows you to start the analysis of the heap dump. The dominator tree gives quickly an overview of the used objects.

How do I open memory analyzer in Eclipse?

With the Memory Analyzer feature installed, try Window -> Open Perspective -> Other... , then select Memory Analyzer and OK. Once the MA perspecive is open, one should be able to see the Memory Analyzer specific Eclipse menus.


1 Answers

When you debug your app, open DDMS in Eclipse. On the toolbar there is a heap dump button that you can use to generate a heap dump to view in Eclipse memory analyzer. This is only supported I think with the 1.6+ or 2.0+ SDK.

like image 116
Robby Pond Avatar answered Sep 22 '22 04:09

Robby Pond