Memory Analyzer (MAT) module does not open prof heap in MAT Eclipse 4.1.2 automatically

Eclipse SDK Version: 4.1.2 Build id: M20120223-0900 Memory Analyzer 1.1.1.201108240735 Eclipse Memory Analyzer 

Hi, I updated my eclipse to the latest version, I also installed the Eclipse MAT plugin, but when I click "Dump HPROF file", it does not open in MAT, but gives me the opportunity to save the HPROF file.

Previously, it automatically opens it in Eclipse Mcl. Please tell me how to fix this.

I also switched to "Memory Analysis" and tried to open the HPROF file, but it threw me for an error

 Error opening heap dump 'com.game.hprof'. Check the error log for further details. Error opening heap dump 'com.game.hprof.hprof'. Check the error log for further details. Unknown HPROF Version (JAVA PROFILE 1.0.3) (java.io.IOException) Unknown HPROF Version (JAVA PROFILE 1.0.3) 
+6
source share
3 answers

try the following:

in eclipse -> windows -> preference -> android -> ddms -> HPROF action menu

select: open in eclipse

+16
source

You can use the HPROF Converter tool provided in android sdk.

The hprof-conv tool converts the HPROF file created by the Android SDK tools into a standard format so that you can view the file in the profile tool of your choice.

 hprof-conv <infile> <outfile> 

Learn more at HPROF Converter.

After the conversion, the file opens without any problem.

+13
source

In the new version of eclipse, we need to set the default function for the HPROF file, and the default is "Save to disk." To fix this, follow these steps :)

Window β†’ Settings β†’ Android β†’ (click the arrow to open Android View) DDMS β†’ HPROF Action β†’ select β€œOpen in Eclipse” see image for reference

enter image description here

+8
source

Source: https://habr.com/ru/post/910572/


All Articles