I am trying to optimise native code. I tried using Debug.startMethodTracing() and Debug.stopMethodTracing(). But its profiling only java functions, its not profiling the native code. The native call that we do from java code is just displayed for that time, the internal native calls are not being displayed. I built the native library in debug mode, even then i am not able to profile the native code.
In stackoverflow i got these links, but these are also not much useful for me, please help me in profiling native code. I am working on the release phone for app development on Android. So, i dont have access to the android source code. Please guide me.
Links:
1) dmtracedump doesn't work, HELP!
2) Android native code profiling
3) http://developer.android.com/guide/developing/debugging/debugging-tracing.html
D:\Profiling>dmtracedump -o D:\Profiling\EvrcEncoderProfiling.trace
ERROR: unable to read 42170 bytes from trace file
D:\Profiling>traceview D:\Profiling\EvrcEncoderProfiling.trace
D:\Profiling>
Traceview is working but dmtracedump is not working.
Thanks & Regards,
SSuman185