Android原生code评测 [英] Android native code profiling

查看:101
本文介绍了Android原生code评测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图来分析原生的Andr​​oid code,但我得到的
以下error.I正在运行的code在Linux机器上。


  

$ tracedmdump轮廓后处理
  痕迹......


  
  

静态基本块:64525,动态
  基本块:87073132


  
  

静态指令:412004,动态
  说明:509641730


  
  

经过秒数:26.46,模拟
  指令/秒:19.3M


  
  

生成dexlist输出...


  
  

生成dmtrace数据...


  
  

错误:堆栈溢出(500帧)


如果有人知道如何调试这个问题......请帮助

感谢和问候,

巴拉特·帕瓦尔


解决方案

  1. 从您的文章和<一个href=\"http://android.git.kernel.org/?p=platform/build.git;a=commitdiff;h=05806d7af62e07c6225b2e7103a1b115ecf6c9ad\"相对=nofollow> Android的GIT commitdiff 它看起来像这一行中的tracedmdump壳功能出了问题:


      

    Q2Dm导-r $ ANDROID_PRODUCT_OUT /符号$ TRACE $内核$ TRACE / dmtrace



  2. 该Q2Dm导命令的<一部分href=\"http://android.git.kernel.org/?p=platform/development.git;a=tree;f=emulator/qtools;h=65e00b539740ebbef9d11043b903718aa1babe39;hb=1298570eb89eb52172f0c8d8b7ff9ed2511e9225\"相对=nofollow> QEMU模拟器工具的为Android。


  3. 看起来像这个问题其实一直<一个href=\"http://android.git.kernel.org/?p=platform/development.git;a=commit;h=1298570eb89eb52172f0c8d8b7ff9ed2511e9225\"相对=nofollow>固定和更改的源致力于。


  4. 一。如果可以,用 Android的Git仓库同步本地Git仓库,并建立自己的一个更新版本该Q2Dm导工具。结果湾另外,检查/等待下一个NDK(子)发布了较新版本Q2Dm导


希望这有助于!

I am trying to profile native android code, but I am getting the following error.I am running the code on a linux machine.

$tracedmdump profile post-processing traces...

Static basic blocks: 64525, Dynamic basic blocks: 87073132

Static instructions: 412004, Dynamic instructions: 509641730

Elapsed seconds: 26.46, simulated instructions/sec: 19.3M

generating dexlist output...

generating dmtrace data...

Error: stack overflow (500 frames)

If anyone knows how to debug this issue...please help

Thanks and Regards,

Bharat Pawar

解决方案

  1. From your post and the Android GIT commitdiff it looks like this line in the "tracedmdump" shell function went wrong:

    q2dm -r $ANDROID_PRODUCT_OUT/symbols $TRACE $KERNEL $TRACE/dmtrace

  2. The q2dm command is part of the qemu emulator tools for Android.

  3. Looks like the problem has actually been fixed and changed source committed.

  4. a. If you can, synchronize your local GIT repository with the Android GIT repository and build yourself a more current version of the q2dm tool.
    b. Alternatively, check/wait for the next NDK (sub-)release for a more current q2dm version.

Hope this helps!

这篇关于Android原生code评测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆