An Empirical Study of the Performance Impacts of Android Code Smells
Autor: | Naouel Moha, Geoffrey Hecht, Romain Rouvoy |
---|---|
Přispěvatelé: | Self-adaptation for distributed services and large software systems (SPIRALS), Inria Lille - Nord Europe, Institut National de Recherche en Informatique et en Automatique (Inria)-Institut National de Recherche en Informatique et en Automatique (Inria)-Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189 (CRIStAL), Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS)-Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS), Université de Lille, Sciences et Technologies, Laboratory for Research on Technology for ECommerce (LATECE Laboratory - UQAM Montreal), Université du Québec à Montréal = University of Québec in Montréal (UQAM), Département d'informatique [Montréal], Lori Flynn, Paola Inverardi, SOMCA |
Jazyk: | angličtina |
Rok vydání: | 2016 |
Předmět: |
Metrics Mobile computing Performance
Database Computer science business.industry Mobile computing Code smell 020207 software engineering Scenario 02 engineering and technology [INFO.INFO-SE]Computer Science [cs]/Software Engineering [cs.SE] computer.software_genre Software quality [INFO.INFO-IU]Computer Science [cs]/Ubiquitous Computing [INFO.INFO-MC]Computer Science [cs]/Mobile Computing Code refactoring Android 020204 information systems Embedded system 0202 electrical engineering electronic engineering information engineering Android (operating system) business computer Mobile device Code smells Garbage collection |
Zdroj: | IEEE/ACM International Conference on Mobile Software Engineering and Systems (MOBILESoft'16) IEEE/ACM International Conference on Mobile Software Engineering and Systems (MOBILESoft'16), May 2016, Austin, Texas, United States MOBILESoft |
Popis: | International audience; Android code smells are bad implementation practices withinAndroid applications (or apps) that may lead to poor software quality, in particular in terms of performance. Yet, performance is a main software quality concern in the development of mobile apps. Correcting Android code smells is thus an important activity to increase the performance of mobile apps and to provide the best experience to mobile end-users while considering the limited constraints of mobile devices (e.g., CPU, memory, battery). However, no empirical study has assessed the positive performance impacts of correcting mobile code smells. In this paper, we therefore conduct an empirical study focusing on the individual and combined performance impacts of three Android performance code smells (namely, Internal Getter/Setter, Member Ignoring Method, and HashMap Usage) on two open source Android apps. To perform this study, we use the Paprika toolkit to detect these three code smells in the analyzed apps, and we derive four versions of the apps by correcting each detected smell independently, and all of them. Then, we evaluate the performance of each version on a common user scenario test. In particular, we evaluate the UI and memory performance using the following metrics: frame time, number of delayed frames, memory usage, and number of garbage collection calls. Our results show that correcting these Android code smells effectively improve the UI and memory performance. In particular, we observe an improvement up to 12.4% on UI metrics when correcting Member Ignoring Method and up to 3.6% on memory-related metrics when correcting the three Android code smells. We believe that developers can benefit from these results to guide their refactoring, and thus improvethe quality of their mobile apps. |
Databáze: | OpenAIRE |
Externí odkaz: |