没有源代码的Android应用程序中的方法覆盖 [英] Method coverage in an android application without source code

查看:193
本文介绍了没有源代码的Android应用程序中的方法覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以在没有源代码的情况下给我一个关于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:


  1. 启动DDMS

  2. 选择设备

  3. 选择流程

  4. 按开始方法分析按钮(带红色按钮的箭头)

  5. 停止方法分析

  1. start DDMS
  2. selected the device
  3. select the process
  4. press "Start method profiling" button (arrows with red button)
  5. "Stop method profiling"

你会收到类似这样的报告:

and you'll get a report like this one:

查看 http://developer.android.com/tools/debugging/debugging-tracing.html

这篇关于没有源代码的Android应用程序中的方法覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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