Android的 - 内存/ CPU使用率 [英] Android - memory/CPU usage

查看:147
本文介绍了Android的 - 内存/ CPU使用率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我已经开发了两款Android应用程序。我需要比较两个应用程序的一个项目,我想找到的工具,让我捕捉到关于应用,如CPU /内存方面的计算使用的数据/数据​​传输等。此外反正是有比较不同的影响应用程序会对电池使用?

I have two android applications that I have developed. I need to compare the two app's for a project and I am trying to find tools that will allow me to capture data about the applications such as computational use in terms of CPU/memory/data transfer etc. Also is there anyway to compare the different effects the apps would have on battery usage?

谢谢

推荐答案

有关分析的CPU使用率在您的应用程序(如时间花费在个别方法的百分比),检查出的 traceview 。这是你的工具目录中的可执行文件,自带了Android SDK。

For profiling CPU usage in your app (like percentage of time spend in individual methods), check out traceview. It's an executable in your tools directory that comes with the Android SDK.

有关内存使用情况,您可以使用的Eclipse内存分析器(MAT)(有一个独立的选择,如果你preFER另一个IDE)。

For memory usage, you can use Eclipse Memory Analyzer (MAT) (there's a standalone option if you prefer another IDE).

有关电池的使用,有一个名为 PowerTutor 的项目,它通过对CPU,网络接口消耗的估计功率,显示,和GPS

For battery usage, there's a project called PowerTutor which helps estimate power consumed by the CPU, network interface, display, and GPS.

这篇关于Android的 - 内存/ CPU使用率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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