I was watching the Google I/O video on Memory Management, and the presenter 
said that if you open a heap dump in MAT that you obtained from DDMS you 
have to convert it with the hprof tool with a -conv flag. He invoked this at 
the command line, so I attempted to do the same.  I am on Windows, and I get 
an error that the command does not exist.  Is this command not part of the 
Android, Eclipse or MAT tools?  Since there was no mention of any additional 
install required, I expected to find this in the eclipse or mat directories 
as a .bat file or something to that effect.

I know that I can generate it from within Eclipse, but then I have to go 
hunting through my AppData for the temp file generated.  When I generate the 
heap dump in Eclipse, the dump is saved to a temp file which is opened as 
plain text in the editor.  I'm unable to save this because I get an error 
that "some characters cannot be mapped using "Cp1252" char encoding".  I 
read that the way to set another default encoding (UTF-8, for example) that 
would allow me to save it is to go to File - Properties.  The problem is 
that when I attempt to do that, I get another error dialog saying that there 
are no property pages for xxxx.hprof.

I am able to navigate into my temp directory and pull out the hprof file and 
open in MAT, but that's a bit of a pain.  Anyone have any recommendations on 
either or both issues?

Thanks!
Rich

-- 
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

Reply via email to