Strange that you get the heapdump opened in a textfile when you
generate it from Eclipse. Did you actually install the MAT plugin?
It's not in the standard Android SDK-with-Eclipse setup.

Note that the hprof file always appears in the same dir, just with a
different timestamp. So you can get it like this:

adb pull /data/misc/heap-dump-tm1264948174-pid210.hprof
myheapdump.hprof

The exact file name you can find in the logcat output, search for
something like:
hprof: dumping heap strings to "/data/misc/heap-dump-tm1264948174-
pid210.hprof".

HTH.


On 24 mei, 22:10, Rich <aguynamedr...@gmail.com> wrote:
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to