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. The native code which be generated by JIT Compiler can be portable?

Hi everyone,

For the research purpose, I want to place the native code which be
generated by JIT compiler to other location at runtime,and the new
location is not at origin code cache.

But when i do this , I got some error like SIGILL or SIGSEGV

Is the native code position independent ? Or it should do some
relocation?

Thanks

yao-chih

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to refer an attribute value to the other attribute in the same element of layout

Hello,
I have problem to solve. I have listview in which
android:background="#FFFF7W" value I would would like to put it in the
android:cacheColorHint= "the value of the android:background".
If anybody put some light how to refer the other attribute value to
another attribute of the same element would be grateful.

                <ListView android:id="@id/android:list"
                android:background="#FFFF7W"
                android:divider="#B0B0B0"
                android:dividerHeight="1dip"
                android:smoothScrollbar="true"
                android:fastScrollEnabled="true"
                android:layout_width="fill_parent"
                android:layout_height="0dip"
                android:layout_weight="1"
                android:choiceMode="multipleChoice"
                android:cacheColorHint= "<= I would like to refer the same 
value of
android:background"
          />

Thanks
ad ag

-- 

3. Working GL init/deinit on Droid 2.1 WallpaperService?

4. Progress dialog question/problem (API Demos example)

5. Service Object Availability between Activities

6. Attachment

7. "Unable to start WiFi" after flash a new customized kernel