Android 中每个进程的功耗
有没有办法查看Android进程的功耗?我有一个root过的HTC Hero,并且用C语言开发了一些本机程序。我想看看这些程序的功耗。因此,我想要一种方法来测量进程级别的功耗,而不是像 PowerTutor 应用程序那样在应用程序级别测量功耗。
是否有 API 可以帮助我开发可以执行此操作的应用程序? 我可以使用 /proc/ stats 等吗?
对此有什么想法吗?
Is there a way to see the power consumption of an Android process? I have a rooted HTC Hero, and I have developed some native programs in C language. I want to see the power consumptions of these programs. So, I want a way to measure the power consumption in process level and not in application level as e.g. PowerTutor application does..
Is there an API that can help me develop an application that can do this thing?
Can I use /proc/ stats etc.?
any ideas on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如此处所述:Android 电池使用情况分析
As said here: Android Battery usage profiling
AppScope是一个使用内核的Android智能手机的应用程序能源计量框架活动监控。 AppScope 提供准确且详细的每个应用程序 和每个进程 能源估算解决方案。
当前版本仅支持 HTC Nexus One,可以在此处找到。
有关 AppScope 框架的更多信息和技术细节,您可以阅读 USENIX ATC '12,此处。
AppScope is an application energy metering framework for Android smartphones using kernel activity monitoring. AppScope provides an accurate and detailed both per-application and per-process energy estimation solution.
The current release supports HTC Nexus One only and can be found here.
For more information and technical details about the AppScope framework you can read the AppScope paper presented at USENIX ATC '12, here.