Investigating the Energy Impact of Android Smells

Abstract : Android code smells are bad implementation practices within Android applications (or apps) that may lead to poor software quality. These code smells are known to degrade the performance of apps and to have an impact on energy consumption. However, few studies have assessed the positive impact on energy consumption when correcting code smells. In this paper, we therefore propose a tooled and reproducible approach, called Hot-Pepper, to correct automatically code smells and evaluate their impact on energy consumption. Currently, Hot-Pepper is able to correct automatically three types of Android specific code smells (Internal Getter/Setter, Member Ignoring Method, and HashMap Usage). Hot-Pepper derives four versions of the apps by correcting each detected smell independently, and all of them. Hot-Pepper is able to report on the energy consumption of each app version with a single user scenario test. Our empirical study on five open-source Android apps shows that correcting the three aforementioned Android code smells effectively reduce significantly the energy consumption of apps. In particular, we observed a global reduction of the energy consumption of 4,83% on one app when the three code smells are corrected. We also take advantage of the flexibility of Hot-Pepper to investigate the impact of three pictures code smells (bad picture format, compression, and bitmap format) in sample apps. We observed that the usage of optimized JPG pictures with the Android default bitmap format is the most energy efficient combination in Android apps. We believe that developers can benefit from our approach and results to guide their refactoring, and thus improve the energy consumption of their mobile apps.
Type de document :
Communication dans un congrès
Andrian Marcus; Gabriele Bavota. 24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER), Feb 2017, Klagenfurt, Austria. IEEE, pp.10, Proceedings of the 24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER). 〈http://saner.aau.at〉
Liste complète des métadonnées

Littérature citée [35 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01403485
Contributeur : Romain Rouvoy <>
Soumis le : vendredi 16 décembre 2016 - 13:03:42
Dernière modification le : mercredi 25 avril 2018 - 15:42:58
Document(s) archivé(s) le : mardi 21 mars 2017 - 12:31:58

Fichier

carette-saner-17.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : hal-01403485, version 1

Citation

Antonin Carette, Mehdi Adel Ait Younes, Geoffrey Hecht, Naouel Moha, Romain Rouvoy. Investigating the Energy Impact of Android Smells. Andrian Marcus; Gabriele Bavota. 24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER), Feb 2017, Klagenfurt, Austria. IEEE, pp.10, Proceedings of the 24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER). 〈http://saner.aau.at〉. 〈hal-01403485〉

Partager

Métriques

Consultations de la notice

378

Téléchargements de fichiers

621