Automated Re-factoring of Android Apps to Enhance Energy-efficiency

被引:0
作者
Banerjee, Abhijeet [1 ]
Roychoudhury, Abhik [1 ]
机构
[1] Natl Univ Singapore, Singapore, Singapore
来源
2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016) | 2016年
关键词
Mobile Apps; Re-factoring; Energy-efficiency;
D O I
10.1145/2897073.2897086
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Mobile devices, such as smartphones and tablets, are energy constrained by nature. Therefore, apps targeted for such platforms must be energy-efficient. However, due to the use of energy oblivious design practices often this is not the case. In this paper, we present a light-weight re-factoring technique that can assist in energy aware app development. Our technique relies on a set of energy efficiency guidelines that encodes the optimal usage of energy intensive (hardware) resources in an app. Given a prototype for an app, our technique begins by generating a design-expression for it. A design-expression can he described as a regular-expression representing the ordering of energy-intensive resource usages and invocation of key functionalities (event-handlers) within the app. It also generates a set of defect-expressions, that are design-expressions representing the negation of energy-efficiency guidelines. A non empty intersection between an app's design-expression and a defect expression indicates violation of a guideline (and therefore, potential for re-factoring). To evaluate the efficacy of our re-factoring technique we analysed a suite of open-source Android apps using our technique. The resultant re-factoring when applied, reduced the energy-consumption of these apps between 3 % to 29 %. We also present a case study for one of our subject apps, that captures its design evolution over a period of two-years and more than 200 commits. Our framework found re-factoring opportunities in a number of these commits, that could have been implemented earlier on in the development stages had the developer used an energy-aware re factoring technique such as the one presented in this work.
引用
收藏
页码:139 / 150
页数:12
相关论文
共 34 条
  • [1] Baek W., 2010, PLDI
  • [2] Banerjee A., 2014, FSE
  • [3] Banerjee A., 2014, P 2 INT WORKSH SOFTW
  • [4] Banerjee Abhijeet, 2016, IEEE ACM INT C MOB S
  • [5] Banerjee Abhijeet, 2014, P 22 ACM SIGSOFT INT
  • [6] Carroll A., 2010, 2010 USENIX ANN TECH
  • [7] Cohen M., 2012, OOPSLA
  • [8] Dong Mian., 2011, MobiSys '11, P335, DOI DOI 10.1145/1999995.2000027
  • [9] Ferreira D, 2011, LECT NOTES COMPUT SC, V6696, P19, DOI 10.1007/978-3-642-21726-5_2
  • [10] PowerScope: A tool for profiling the energy usage of mobile applications
    Flinn, J
    Satyanarayanan, M
    [J]. WMCSA '99, SECOND IEEE WORKSHOP ON MOBILE COMPUTING SYSTEMS AND APPLICATIONS, PROCEEDINGS, 1999, : 2 - 10