I am facing a similar problem. As per the instruction on monkey usage I generate the profiling data using --hprof option passed to monkey.
There are a few files generated in the /data/misc folder. As per the instructions on http://code.google.com/android/reference/monkey.html I tried opening the files using traceview and also dmtracedump but I am getting the below errors. ->dmtracedump heap-dump-tm1227259382-pid51.hprof ERROR: not at start of version (found ' ') Cannot read trace. ->dmtracedump heap-dump-tm1227259382-pid51.hprof-head ERROR: not at start of version (found 'JAVA PROFI') Cannot read trace. ->traceview heap-dump-tm1227259382-pid51.hprof Exception in thread "main" java.lang.NumberFormatException: For input string: " [EMAIL PROTECTED] C7?XC; @@ ?@ z(@ @ ??@ .?@ 8?@ ??@ Q`@ ?@ g?@ U?@ 0?@ [EMAIL PROTECTED] p@ ?H@ SP@ Q@ @ ?@ ?h@ ??@ J?@ ??@ Y?@ [EMAIL PROTECTED], CA??@ [EMAIL PROTECTED]@?@@ ??@ U @ ?8@ =`CF?X@ [EMAIL PROTECTED]@ ??@ ??@ ??@ i8@ ??@ X`@ wP@ "xCF?@ ?h@ [EMAIL PROTECTED]@ ?pC6?@ 8U @ ??@ x@" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.valueOf(Integer.java:526) at java.lang.Integer.decode(Integer.java:918) at com.google.traceview.DmTraceReader.parseKeys(DmTraceReader.java:359) at com.google.traceview.DmTraceReader.generateTrees(DmTraceReader.java:77) at com.google.traceview.DmTraceReader.<init>(DmTraceReader.java:71) at com.google.traceview.MainWindow.main(MainWindow.java:187) ->traceview heap-dump-tm1227259382-pid51.hprof-head Exception in thread "main" java.lang.NumberFormatException: For input string: "JAVA PROFILE 1.0.3 ?\ !&??id_aa_signatureTimeStampToken*s?STOP &??message &��KEY_CIPHER $� A??????M???°???_??????U???I? )��?B???S?°?I??T??? / (�8??±.??????.????.????.????.A???????P???E???? '�(?C????M???T???C??I???? ( ??I???S? '� °????±E?±?L??±?? " ?? ????.???±.N?????F?????E????????.°??I????S????±(N?????F?????E????????.????:48) ?? ????.???±.I???±??.?????I??(I???±??.????:447) ?? ????.???±.I???±??.?????O°(I???±??.????:526) ?? ????.???±.I???±??.??????(I???±??.????:918) ?? ???.±??±??.?????????.D?T????R?????.?????K???(D?T????R?????.????:359) ?? ???.±??±??.?????????.D?T????R?????.±???????T????(D?T????R?????.????:77) ?? ???.±??±??.?????????.D?T????R?????.<????>(D?T????R?????.????:71) ?? ???.±??±??.?????????.M???W?????.????(M???W?????.????:187) Have also tried using hat ->hat heap-dump-tm1227259382-pid51.hprof Started HTTP server on port 7000 Reading from heap-dump-tm1227259382-pid51.hprof... java.io.IOException: Unrecognized magic number: 469762048 at hat.parser.Reader.readFile(Reader.java:99) at hat.Main.main(Main.java:149) ->hat heap-dump-tm1227259382-pid51.hprof-head Started HTTP server on port 7000 Reading from heap-dump-tm1227259382-pid51.hprof-head... java.io.IOException: Version string not recognized at byte 17 at hat.parser.HprofReader.readVersionHeader(HprofReader.java:325) at hat.parser.HprofReader.read(HprofReader.java:169) at hat.parser.Reader.readFile(Reader.java:90) at hat.Main.main(Main.java:149) Whatz the use case of --hprof option to monkey when there isn't any tool available to dump the data? - Riaz fadden wrote: > On Nov 20, 9:48 am, qvark <[EMAIL PROTECTED]> wrote: > >> If the output is not compatible with a standard hprof format, could >> somebody at Google point out the differences and the motivations for >> them? With such advice we could try to adapt a tool or make the format >> compatible with the existing ones... >> > > In the git sources, see dalvik/vm/hprof/Hprof.h and the list of tags > commented "Android". > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

