Detecting Energy Bugs and Hotspots in Mobile Apps
2014 (English)In: FSE 2014: Foundations of Software Engineering, Association for Computing Machinery (ACM), 2014, 588-598 p.Conference paper (Refereed)
Over the recent years, the popularity of smartphones has increased dramatically. This has lead to a widespread availability of smartphone applications. Since smartphones operate on a limited amount of battery power, it is important to develop tools and techniques that aid in energy-efficient application development. Energy inefficiencies in smartphone applications can broadly be categorized into energy hotspots and energy bugs. An energy hotspot can be described as a scenario where executing an application causes the smartphone to consume abnormally high amount of battery power, even though the utilization of its hardware resources is low. In contrast, an energy bug can be described as a scenario where a malfunctioning application prevents the smartphone from becoming idle, even after it has completed execution and there is no user activity. In this paper, we present an automated test generation framework that detects energy hotspots/bugs in Android applications. Our framework systematically generates test inputs that are likely to capture energy hotspots/bugs. Each test input captures a sequence of user interactions (e.g. touches or taps on the smartphone screen) that leads to an energy hotspot/bug in the application. Evaluation with 30 freely-available Android applications from Google Play/F-Droid shows the efficacy of our framework in finding hotspots/bugs. Manual validation of the experimental results shows that our framework reports reasonably low number of false positives. Finally, we show the usage of the generated results by improving the energy-efficiency of some Android applications.
Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2014. 588-598 p.
Computer and Information Science
IdentifiersURN: urn:nbn:se:liu:diva-112688DOI: 10.1145/2635868.2635871ISBN: 978-1-4503-3056-5OAI: oai:DiVA.org:liu-112688DiVA: diva2:769448
22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE 2014), Hong Kong, China, November 16-21, 2014