Android Best Practices: MAT

When you want to improve an Android application performance, you need to do profiling. Welcome MAT!

What is MAT?

It’s a Java heap analyzer tool introduced by Eclipse that helps you find memory leaks.


First you need to extract a hprof file from the Android device. When running the device select the Dump HPROF file option as shown here

Convert the .hprof file from the Dalvik format to the J2SE HPROF format. You can do this using the hprof-conv tool provided in the Android SDK.

hprof-conv dump.hprof converted-dump.hprof

Import the converted hprof file into MAT, and start anaylzing


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s