{"title":"通过自动重构提高能源效率","authors":"Luis Cruz, Rui Abreu","doi":"10.5753/jserd.2019.17","DOIUrl":null,"url":null,"abstract":"The ever-growing popularity of mobile phones has brought additional challenges to the software development lifecycle. Mobile applications ought to provide the same set of features as conventional software, with limited resources: such as limited processing capabilities, storage, screen and, not less important, power source. Although energy efficiency is a valuable requirement, developers often lack knowledge of best practices. In this paper, we propose a tool to improve the energy efficiency of Android applications using automatic refactoring — Leafactor. The tool features five energy code smells that tend to go unnoticed. In addition, we study whether automatic refactoring can aid developers to ship energy efficient mobile applications with a dataset of 140 free and open source apps. As a result, we detect and fix code smells in 45 Android apps, from which 40% have successfully merged our changes into the official repository.","PeriodicalId":189472,"journal":{"name":"J. Softw. Eng. Res. Dev.","volume":"12 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-08-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":"{\"title\":\"Improving Energy Efficiency Through Automatic Refactoring\",\"authors\":\"Luis Cruz, Rui Abreu\",\"doi\":\"10.5753/jserd.2019.17\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The ever-growing popularity of mobile phones has brought additional challenges to the software development lifecycle. Mobile applications ought to provide the same set of features as conventional software, with limited resources: such as limited processing capabilities, storage, screen and, not less important, power source. Although energy efficiency is a valuable requirement, developers often lack knowledge of best practices. In this paper, we propose a tool to improve the energy efficiency of Android applications using automatic refactoring — Leafactor. The tool features five energy code smells that tend to go unnoticed. In addition, we study whether automatic refactoring can aid developers to ship energy efficient mobile applications with a dataset of 140 free and open source apps. As a result, we detect and fix code smells in 45 Android apps, from which 40% have successfully merged our changes into the official repository.\",\"PeriodicalId\":189472,\"journal\":{\"name\":\"J. Softw. Eng. Res. Dev.\",\"volume\":\"12 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2019-08-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"7\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"J. Softw. Eng. Res. Dev.\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.5753/jserd.2019.17\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Eng. Res. Dev.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5753/jserd.2019.17","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Improving Energy Efficiency Through Automatic Refactoring
The ever-growing popularity of mobile phones has brought additional challenges to the software development lifecycle. Mobile applications ought to provide the same set of features as conventional software, with limited resources: such as limited processing capabilities, storage, screen and, not less important, power source. Although energy efficiency is a valuable requirement, developers often lack knowledge of best practices. In this paper, we propose a tool to improve the energy efficiency of Android applications using automatic refactoring — Leafactor. The tool features five energy code smells that tend to go unnoticed. In addition, we study whether automatic refactoring can aid developers to ship energy efficient mobile applications with a dataset of 140 free and open source apps. As a result, we detect and fix code smells in 45 Android apps, from which 40% have successfully merged our changes into the official repository.