计算机与现代化

• 应用与开发 • 上一篇    下一篇

基于硬件运行时间的Android应用非线性能耗模型

  

  1. 南瑞集团公司(国网电力科学研究院),江苏南京210000
  • 收稿日期:2017-03-01 出版日期:2017-10-30 发布日期:2017-10-31
  • 作者简介:蒋厚明(1980-),男,江苏南通人,南瑞集团公司(国网电力科学研究院)工程师,硕士,研究方向:电力信息自动化; 胡牧(1980-),男,副高工程师,硕士,研究方向:电力信息自动化; 曹海涛(1985-),男,工程师,硕士,研究方向:电力信息自动化。
  • 基金资助:
    国家电网公司科技项目(524606150120)

 
Nonlinear Energy Consumption Model of Android Application Based on Hardware Running Time

  1. NARI Group Corporation(National Electricity Science Research Institute), Nanjing 210000, China
  • Received:2017-03-01 Online:2017-10-30 Published:2017-10-31

摘要: Android应用能耗分析一直是移动应用测试的重要组成部分,通过对移动应用和底层移动终端硬件特性的分析,提出一种基于硬件运行时间的非线性能耗模型,与使用复杂但精度高的硬件测量能耗相比,该模型将单个硬件在不同状态的能耗列为基本能耗单元,然后以此为基础结合时间变量刻画终端的功耗,由于运行时间容易精确获取和测量,从而能够快速估算应用程序运行时所产生的能耗。实验结果表明,通过此模型进行的能耗估算结果与通过硬件测量得到的能耗相比平均误差不超过6%,能够为用户快速检测应用程序所消耗的电量提供有效评估。

关键词:  , 移动终端, 应用能耗, 能耗模型, 电量, 硬件测量

Abstract: The application of energy consumption analysis in Android application has always been an important part of mobile application testing. Based on the analysis of the hardware characteristics of mobile application and the underlying mobile terminal, a nonlinear energy consumption model based on hardware running time is proposed. Compared with the hardware energy consumption of complex use but high precision, the model lists the energy consumption of the single hardware in different states as the basic energy consumption unit, and then uses this time to describe the power consumption of the terminal in combination with the time variable, which can easily obtain and measure the running time, so as to quickly estimate the energy consumed by the application runtime. The results show that the average error of the energy consumption estimated by this model is less than 6% compared with the energy consumption measured by hardware measurement, which can provide an effective evaluation for the user to quickly detect the power consumed by the application.

Key words: mobile device, application of energy consumption, energy model, electricity, hardware measurement