I have installed Mat but not sure if I am using it the way intended, as I am not getting any useful results.
I run my app from eclipse using usb debugging. I let it run for a bit doing random actions. I open DDMS in eclipse and goto the "Dump HPROF file" icon. This gives me what I think is a android-specific Hprof file that MAT cant open. However, in the SDK tools directory there is a conversion program (hprof-conv.exe) which I use to get a standard hprof file. MAT can open this, so I do so. I then try "Leak Suspect Report" and click finish. I get a nice piechart with a selection of information - but no trace of my apps class's in any of it. Its as if my app is invisible to the dump somehow. The "problem suspects" it lists are: -- 2,185 instances of "java.lang.Class", loaded by "<system class loader>" occupy 661,576 (36.76%) bytes. Biggest instances: class com.ibm.icu4jni.util.Resources$DefaultTimeZones @ 0x401f7148 - 166,600 (9.26%) bytes. class android.text.Html$HtmlParser @ 0x4007b230 - 126,592 (7.03%) bytes. class org.apache.harmony.security.fortress.Services @ 0x400900d0 - 51,456 (2.86%) bytes. class android.content.res.Resources @ 0x40058cf8 - 41,752 (2.32%) bytes. 7,252 instances of "java.lang.String", loaded by "<system class loader>" occupy 450,392 (25.03%) bytes. Keywords java.lang.String 58 instances of "org.bouncycastle.jce.provider.X509CertificateObject", loaded by "<system class loader>" occupy 289,288 (16.07%) bytes. These instances are referenced from one instance of "java.util.HashMap$HashMapEntry[]", loaded by "<system class loader>" Keywords org.bouncycastle.jce.provider.X509CertificateObject java.util.HashMap$HashMapEntry[] --- I also tried opening the dump and going "Component Report" and typing my projects class name (com.arwave.skywriter), but nothing comes up: Size: 0 B Classes: 0 Objects: 0 Class Loader: 0 Is there something special I have to do too make my project visible to this MAT plugin? It does seem quite usefull. Also, I am dumping manually by using the DDMS dump button, is there a way to do that post-crash or automatically before a crash? Thanks, Thomas On 1 May 2012 09:23, deb-account <[email protected]> wrote: > On 30/04/12 22:13, ThomasWrobel wrote: >> >> Ok, I am using a HTC Legend. >> The crashes didn't start when I started using the 3D, so I don't think >> its a specific command thats doing it. Maybe a OpenGL related memory >> leak. >> > > You may install the mat plugin for eclipse. > It can generate a dump that you can analyze after a crash. > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

