没有源代码的Android应用程序中的方法覆盖 [英] Method coverage in an android application without source code
问题描述
有人可以在没有源代码的情况下给我一个关于android apks中方法覆盖的ide吗?
我听说有一个Android特定版本的emma项目可以通过仪器提供方法覆盖信息。但是,如果我没有源代码,我该如何检测代码呢?
Can someone give me an ide about method coverage in android apks without having the source code? I heard that there is an android specific version of emma project that can give method coverage information through instrumentation. But if I do not have the source code how can I instrument th code?
我的目标是如何在运行时获取运行时调用哪些方法的报告应用程序。
My goal is to some how get a report on which methods were called in the runtime while running the application.
推荐答案
您不需要emma来获取调用哪些方法的报告。
只需:
You don't need emma to get a report of which methods are called. Just:
- 启动DDMS
- 选择设备
- 选择流程
- 按开始方法分析按钮(带红色按钮的箭头)
- 停止方法分析
- start DDMS
- selected the device
- select the process
- press "Start method profiling" button (arrows with red button)
- "Stop method profiling"
你会收到类似这样的报告:
and you'll get a report like this one:
查看 http://developer.android.com/tools/debugging/debugging-tracing.html
这篇关于没有源代码的Android应用程序中的方法覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!