测试电池使用 [英] Testing Battery Usage

查看:224
本文介绍了测试电池使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要来测试我的应用程序影响的手机/平板电脑的电池。

I want to test how my application effects the battery of a phone/tablet.

是否有任何测试工具将允许我这样做?

Are there any testing tools which will allow me to do so?

例如,我想测试其中我的应用程序的模块占用了大部分的量电池等。

For example, I want to test which modules of my application are consuming the most amount of battery, etc.

推荐答案

在实践中,我认为,有权力的问题大多数应用程序,也有CPU的问题。也就是说,你的应用程序的CPU使用的配置文件可能是您的电池消耗的近似值。有警告和例外的话,例如,您的应用程序做一些价格昂贵的GPU,无线网络,存储等,以及昂贵的操作没有采取太多的CPU时间。

In practice, I believe most apps that have power problems, also have 'CPU' problems. That is, a profile of your application's CPU usage is probably a good approximation of your battery consumption. There are caveats and exceptions if, for example, your app is doing something expensive with the GPU, the wireless network, storage, etc, and that expensive operation isn't taking much CPU time.

下面是关于一个电源导师的应用程序,提供了一个正在运行的系统更precise测量一个有趣的博客比内置电池的应用程序: <一href="http://gigaom.com/mobile/android-power-consumption-app/">http://gigaom.com/mobile/android-power-consumption-app/.我还没有尝试过。

Here's an interesting blog about a "Power Tutor" app that provides a more precise measurement on a running system than the built-in battery app: http://gigaom.com/mobile/android-power-consumption-app/. I haven't tried it.

有关详细的另一个层面,这里是一个文件,打破了其中一个电话的成分吸最汁(注意将纸张从2010):<一href="http://www.usenix.org/event/usenix10/tech/full_papers/Carroll.pdf">http://www.usenix.org/event/usenix10/tech/full_papers/Carroll.pdf (跳过第5阅读他们的结果)。他们说,屏幕亮度是最大的罪魁祸首。

For another level of detail, here is a paper that breaks down which components of a phone suck the most juice (note the paper is from 2010): http://www.usenix.org/event/usenix10/tech/full_papers/Carroll.pdf (Just skip to section 5 to read their results). They say the screen brightness is the biggest culprit.

如果屏幕亮度是最大的罪魁祸首,一定要设置为一个固定的水平,如果你要测试自己的应用程序的使用情况。

If the screen brightness is the biggest culprit, be sure to set that to a fixed level if you are measuring your own application's usage.

如果您在测量功耗很感兴趣,你可以按照自己的方法(这invovles打开手机上和物理上连接测量装置。)

If you're really interested in measuring power consumption, you can follow their methodology (which invovles opening the phone and physically attaching measuring devices.)

这篇关于测试电池使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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