I've had similar problems running traceview:
- On Windows XP SP2 running JRE1.6.0_05, traceview fails exactly as you've stated. Have you already filed a bug in the issue tracker for this? - On Mac OS X 10.5.2, traceview simply fails silently. I've already filed a bug in the issue tracker for this. As far as I can tell, the profiling tools in the latest sdk release do not work with OSX or XP. On Feb 24, 10:41 am, altden <[EMAIL PROTECTED]> wrote: > Bump. Anyone at all got the profiler to work? > > On Feb 16, 4:41 pm, altden <[EMAIL PROTECTED]> wrote: > > > And the same story with dmtracedump.exe it crashes upon startup with > > Access Violation. > > > D:\tmp>D:\andr\tools\dmtracedump.exe D:\tmp\calc > > Exit from method java/lang/ClassLoader.findLoadedClass (Ljava/lang/ > > String;)Ljava/lang/Class; does not match stack: > > 0: 2502 (null).android/os/Debug startClassPrep > > WARNING: hit EOF mid-record > > > ====================================================================== > > Total cycles: 6345 > > > Exclusive elapsed times for each method, not including time spent in > > children, sorted by exclusive time. > > > Usecs self % sum % Method > > > On Feb 16, 4:04 pm, altden <[EMAIL PROTECTED]> wrote: > > > > This looks like what I need, only it does not work. > > > I have collected the traces and got two files as per example. > > > However the tool crashes when trying to open the files. > > > > C:\bin\android\android-sdk_m5-rc14_windows\tools>traceview.bat D:\tmp > > > \calc > > > > 53:31 I/ddms: Ping not sent: too soon after last > > > Exception in thread "main" java.lang.RuntimeException: Method exit > > > (java/lang/ClassLoader.findLoadedClass (Ljava/lang/String;)Ljava/lang/ > > > Class;) does not match current method (android/os/Debug.startClassPrep > > > ()V) > > > at com.google.traceview.ThreadData.exit(ThreadData.java:116) > > > at com.google.traceview.ThreadData.handleCall(ThreadData.java:78) > > > at > > > com.google.traceview.DmTraceReader.parseDataPass2(DmTraceReader.java: > > > 284) > > > at > > > com.google.traceview.DmTraceReader.parseDataFile(DmTraceReader.java: > > > 175) > > > at > > > com.google.traceview.DmTraceReader.generateTrees(DmTraceReader.java: > > > 81) > > > at > > > com.google.traceview.DmTraceReader.<init>(DmTraceReader.java:75) > > > at com.google.traceview.MainWindow.main(MainWindow.java:126) > > > > On Feb 16, 1:40 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > Look at the tool calledtraceviewincluded in the SDK. > > > > > On Feb 16, 2008 1:31 AM, altden <[EMAIL PROTECTED]> wrote: > > > > > > So how does one profile Android application? > > > > > Search for keyword "profiler" has produced zero hits. > > > > > > Is System.currentTimeMillis() the best we can count on? > > > > > > How about allocation profiler? > > > > > -- > > > > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

