Evaluating the Impact of Code Smell Refactoring on the Energy Consumption of Android Applications

No Thumbnail Available
Date
2019-08-01
Authors
Anwar, H.
Pfahl, Dietmar
Srirama, Satish N.
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Energy consumption of mobile apps is receiving a lot of attention from researchers. Recent studies indicate that energy consumption of mobile devices could be lowered by improving the quality of mobile apps. Frequent refactoring is one way of achieving this goal. We explore the performance and energy impact of several common code refactorings in Android apps. Experimental results indicate that some code smell refactorings positively impact the energy consumption of Android apps. Refactoring of the code smells 'Duplicated code' and 'Type checking' reduce energy consumption by up to 10.8%. Significant reduction in energy consumption, however, does not seem to be directly related to the increase or decrease of execution time. In addition, the energy impact over permutations of code smell refactorings in the selected Android apps was small. When analyzing the order in which refactorings were made across code smell types, it turned out that some permutations resulted in a reduction and some in an increase of energy consumption for the analyzed apps.
Description
Keywords
Code Power Consumption, Code Smell Detection, Code Smell Refactoring, Refactoring, Software Maintenance
Citation
Proceedings - 45th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2019