Subject: [android-porting] Re: Profiling ->memory usage


I am trying to convert the hprof generated by android to standard
format using the code at For this
i goto unix and
1) type gcc HprofConv.c (this is the file containg the code from above
2) next i type,          ./a.out heap-profile.hprof standard1.hprof

This creates the standard1.hprof file. On double clicking this file
JProfiler tries to open this file, but, the following error comes:

"An unrecoverable error occured:
java.lang.ArithmeticEception: / by zero"

Can you please help me to come out of this..

Thanks in advance

Best Regards,

On Sat, Apr 18, 2009 at 12:49 AM, fadden <[email protected]> wrote:

On Apr 17, 6:57 am, Zhubham <
> wrote:
> This has concern to the profiling discussion @
> As mentioned in the second message, i can generate the hprof files.
> But I m facing difficulty in opening this file using Jprofiler. Can u
> please help me out??

You need to convert them with hprof-conv before standard tools will
read them.

This tool exists in recent source trees, in dalvik/tools/hprof-conv,
and migh...

t be in the 1.5 "early look" SDK (I haven't checked).  If all
else fails you can download it from
and build it yourself (it should compile stand-alone, no Android
components needed).

unsubscribe: [email protected]

Programming list archiving by: Enterprise Git Hosting