1. Install the Eclipse Mat plugin
1) View current Eclipse version
Go to eclipse Directory: Right-click the Eclipse icon to see the installation directory/home/zhangshuli/adt-bundle-linux-x86_64-20140702/eclipse/eclipse
Enter Directory,/home/zhangshuli/adt-bundle-linux-x86_64-20140702/eclipse/eclipse/readme/redme_eclipse.html
Double-click to see version information: Release 4.2.0
corresponding version
Attached: Introduction to various releases of Eclipse (Http://zh.wikipedia.org/wiki/Eclipse)
codename |
platform version |
Project |
major release date |
SR1 release date |
SR2 release date |
N/A |
3.0 [1] |
N/A |
June 21, 2004 |
N/A |
N/A |
N/A |
3.1 |
N/A |
June 28, 2005 |
N/A |
N/A |
Callisto |
3.2 |
Callisto projects |
June 30, 2006 |
N/A |
N/A |
Europa |
3.3 |
Europa projects |
June 29, 2007 |
September 28, 2007 |
February 29, 2008 |
Ganymede |
3.4 |
Ganymede projects |
June 25, 2008 |
September 24, 2008 |
February 25, 2009 |
Galileo |
3.5 |
Galileo projects |
June 24, 2009 |
September 25, 2009 |
February 26, 2010 |
Helios |
3.6 |
Helios projects |
June 23, 2010 |
September 24, 2010 |
February 25, 2011 |
Indigo |
3.7 |
Indigo projects |
June 22, 2011 |
September 23, 2011 |
February 24, 2012 |
juno |
4.2 [2" |
juno Projects |
June 27, 2012 |
September 28, 2012 |
February 22, 2013 |
Kepler |
4.3 |
Kepler projects |
June 26, 2013 |
September 27, 2013 (planned) |
February 28, 2014 (planned) |
Luna |
4.4 |
Luna projects |
June 25, 2014 (planned) |
N/A |
N/A |
2) Install the online plugin
Windows->help->install New Software->work with (select the appropriate URL according to the version Juno-http://download.eclipse.org/releases/juno )->general Purpose Tools->memory Analyzer +memory Analyzer (charts) [Optional]->next
Then you can wait for the installation
Use of Mat
1. Generate the Hprof file
1) Enter DDMS
2) Select the module to be monitored (com.android.gallery3d) in the devices
3) Select Update Heap
4) Select Dump HPROF file to automatically switch to mat mode (if no mat is installed, a HPROF file will be generated)
2. Specific analysis
Refer to reprint article http://www.cnblogs.com/zhangshuli-1989/articles/zhangshuli_zj_15021118.html
Worktools-eclipse Mat Installation and use