On Dec 10, 4:49 pm, robert <[email protected]> wrote:
>     We know that it's very convenient to use TraceView in Android java
> code to check the runtime of different chunks of code. Now I develop
> my app with NDK and I want to check the runtime of some native
> functions, but I found nothing in TraceView guide if it's possible to
> use this tool. Because I noticed that one of my native methods spent
> too much time and I want to dig out the more detailed root cause. Is
> there anybody know if we can use TraceView in native code? Or some
> other way to help me solve this problem? Thanks in advance!

You can try using the "-trace" flag with the emulator.  This creates
traceview output that includes native method calls.  You need to use
"tracedmdump" to convert the output.

Brief mention here:

  http://developer.android.com/guide/developing/tools/emulator.html

Example steps here (didn't see a better reference):

  
http://groups.google.com/group/android-ndk/browse_thread/thread/450844f40fd8073d

-- 
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

Reply via email to