Traceview: trace file not found

by Graham Morehead » Mon, 03 Nov 2008 05:39:34 GMT

Sponsored Links
 In an attempt to debug my app, I was trying to use 'traceview' (one of
the apps in the the android SDK).  In the windows edition of the SDK
version 1.0, the executable is 'traceview.bat'.  I was able to get a
tracefile by using the 'android.os.Debug' package and using
Debug.startMethodTracing("basename"); and Debug.stopMethodTracing();
in my code.  I created a virtual sdcard for the emulator to use, and
then I ran the app on the emulator and was successful in creating a
trace file, which I pulled to a directory.  Here was my problem:
Whenever I tried to view the trace using 'traceview.bat', it said that
the file is not found.  This was hard to understand since I specified
the right directory.  I even went into that directory.  It still
couldn't find it.  I finally resolved it when I specified the whole
path using the notation  "C:/topdir/nextdir/... etc."  If you're not
familiar with Cygwin (a Unix shell for windows), you also have the
choice of specifying a path with "/cygdrive/c/topdir/...", but
'traceview' won't parse that.

Hope this helps someone.  It stalled me for hours.


Other Threads

1. How to call an intent of an installed application

Hello all,

as using the adb shell command "adb shell am start -a
i can call the APN settigns intent.
if i installed a new app (say abc.apk) could anybody please let me know how
can i call the intent
of that particular application??

my installed applicationa are stored in location /data/app-private
thanks in advance



2. How access restricted contacts in third party app

Hi All,

 I am developing a sync application which can sync multiple sync
account contacts in server. To take a backup of all contacts I am
reading raw_contacts from Raw_contacts table but problem is I am not
getting restricted contacts of facebook and others in query for
           Is there any way to read restricted contacts.
Any help would be highly appreciated.



3. screen flickering in GLSurfaceView

4. GPS Queueing in LocationListener

5. GLSurfaceView and camera surface

6. Edit Text Password visible on focus in landscape

7. Problem in read() for Bluetooth