Investigating the Energy Impact of Android Smells
Document type :
Communication dans un congrès avec actes
Title :
Investigating the Energy Impact of Android Smells
Author(s) :
Carette, Antonin [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Université de Lille, Sciences et Technologies
Ait Younes, Mehdi Adel [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Hecht, Geoffrey [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Université de Lille, Sciences et Technologies
Self-adaptation for distributed services and large software systems [SPIRALS]
Moha, Naouel [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Rouvoy, Romain [Auteur]
Université de Lille, Sciences et Technologies
Self-adaptation for distributed services and large software systems [SPIRALS]
Institut universitaire de France [IUF]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Université de Lille, Sciences et Technologies
Ait Younes, Mehdi Adel [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Hecht, Geoffrey [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Université de Lille, Sciences et Technologies
Self-adaptation for distributed services and large software systems [SPIRALS]
Moha, Naouel [Auteur]
Laboratory for Research on Technology for ECommerce [LATECE Laboratory - UQAM Montreal]
Rouvoy, Romain [Auteur]
Université de Lille, Sciences et Technologies
Self-adaptation for distributed services and large software systems [SPIRALS]
Institut universitaire de France [IUF]
Scientific editor(s) :
Andrian Marcus
Gabriele Bavota
Gabriele Bavota
Conference title :
24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER)
City :
Klagenfurt
Country :
Autriche
Start date of the conference :
2017-02-20
Journal title :
Proceedings of the 24th International IEEE Conference on Software Analysis, Evolution and Reengineering (SANER)
Publisher :
IEEE
English keyword(s) :
Android
energy consumption
code smells
picture
energy consumption
code smells
picture
HAL domain(s) :
Informatique [cs]/Génie logiciel [cs.SE]
Informatique [cs]/Informatique ubiquitaire
Informatique [cs]/Informatique mobile
Informatique [cs]/Informatique ubiquitaire
Informatique [cs]/Informatique mobile
English abstract : [en]
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 ...
Show more >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.Show less >
Show more >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.Show less >
Language :
Anglais
Peer reviewed article :
Oui
Audience :
Internationale
Popular science :
Non
Collections :
Source :
Files
- https://hal.inria.fr/hal-01403485/document
- Open access
- Access the document
- https://hal.inria.fr/hal-01403485/document
- Open access
- Access the document
- https://hal.inria.fr/hal-01403485/document
- Open access
- Access the document
- document
- Open access
- Access the document
- carette-saner-17.pdf
- Open access
- Access the document
- document
- Open access
- Access the document
- carette-saner-17.pdf
- Open access
- Access the document