无法简介Android原生code [英] Not able to profile android native code
问题描述
我试图优化本地code。我试着用Debug.startMethodTracing()和Debug.stopMethodTracing()。但它仅剖析Java函数,其不可貌相本地code。我们从Java code执行本地调用只是显示那个时候,不被显示在内部本地调用。我建立了本地库在调试模式下,即使在当时我是不能够分析的本土code。
在计算器我得到了这些链接,但这些对我来说也没多大用,请大家帮我分析在本土code。我的工作释放手机上对Android应用的开发。所以,我没有进入Android源$ C $ C。请指引我。
链接:结果
1) dmtracedump不起作用,求助!结果
2) Android原生code评测结果
3) http://developer.android.com/guide/developing/debugging /debugging-tracing.html
D:\\剖析> dmtracedump -o D:\\剖析\\ EvrcEn coderProfiling.trace结果
错误:无法读取跟踪文件,结果42170字节
D:\\剖析> traceview D:\\剖析\\ EvrcEn coderProfiling.trace结果
D:\\剖析>
Traceview是工作,但dmtracedump是行不通的。
感谢和放大器;问候,结果
SSuman185
但它仅剖析Java函数,其不可貌相本地code。
块引用>正确的。这是所有Traceview可以做,因为跟踪文件将只具有的Dalvik的信息。
Traceview是工作,但dmtracedump是行不通的。
块引用>虽然我不知道为什么它不为你工作(我从来没有使用过),它不会有任何更深入地了解你的母语code比将Traceview。
据我所知,您将需要配置您的本地code中的老式的方法:通过收集和记录时间
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.htmlD:\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解决方案But its profiling only java functions, its not profiling the native code.
Correct. That is all Traceview can do, since the trace files will only have Dalvik information.
Traceview is working but dmtracedump is not working.
While I do not know why it is not working for you (I have never used it), it will not have any more insight into your native code than will Traceview.
AFAIK, you will need to profile your native code the old-fashioned way: by collecting and logging times.
这篇关于无法简介Android原生code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!