Energy Efficient Guidelines for iOS Core Location Framework

Abdul Ali Bangash, Daniil Tiganov, Karim Ali, Abram Hindle

2021/06/15

Energy Efficient Guidelines for iOS Core Location Framework

Authors

Abdul Ali Bangash, Daniil Tiganov, Karim Ali, Abram Hindle

Venue

Abstract

Several types of apps require accessing user location, including map navigation, food ordering, and fitness tracking apps. To access user location, app developers use frameworks that the underlying platform provides to them. For the iOS platform, the Core Location framework enables developers to configure various services to obtain user location information. But how does a particular configuration affect the energy consumption of an app? The available Core Location framework documentation is insufficient to help developers reason about the tradeoff between choosing a particular configuration and energy consumption. In this paper, we present a set of guidelines that will help developers make an energy-efficient design choice while configuring the Core Location framework for their app. To achieve that, we have created microbenchmark configurations of the various services that the Core Location framework provides. We have then run several test-scenarios on these configurations to extract their energy profiles. To extract energy-efficient guidelines for developers, we have carefully examined those energy profile results. The guidelines show several configurations that not only reduce energy consumption but also access locations more frequently than other configurations. To evaluate those guidelines, we analyzed three real-world apps and a location service sample app provided by Apple. Our results show that the guidelines help reduce energy: 0.42% for a property search app, 10.59% for a weather app, 26.91% for a location utility app, and 11.37% for Apple’s sample app. Additionally, our empirical evaluation shows that choosing an energy-hungry configuration can increase the energy consumption by up to a maximum of 23.97%. Our guidelines are effective on 3 real-world apps, and our methodology may be used to extract energy-efficient guidelines for frameworks other than the Core Location framework.

Bibtex

@inproceedings{bangash2021ICSME-igreenminer,
 abstract = {Several types of apps require accessing user location, including map navigation, food ordering, and fitness tracking apps. To access user location, app developers use frameworks that the underlying platform provides to them. For the iOS platform, the Core Location framework enables developers to configure various services to obtain user location information. But how does a particular configuration affect the energy consumption of an app? The available Core Location framework documentation is insufficient to help developers reason about the tradeoff between choosing a particular configuration and energy consumption.  In this paper, we present a set of guidelines that will help developers make an energy-efficient design choice while configuring the Core Location framework for their app. To achieve that, we have created microbenchmark configurations of the various services that the Core Location framework provides. We have then run several test-scenarios on these configurations to extract their energy profiles. To extract energy-efficient guidelines for developers, we have carefully examined those energy profile results. The guidelines show several configurations that not only reduce energy consumption but also access locations more frequently than other configurations. To evaluate those guidelines, we analyzed three real-world apps and a location service sample app provided by Apple. Our results show that the guidelines help reduce energy: 0.42% for a property search app, 10.59% for a weather app, 26.91% for a location utility app, and 11.37% for Apple’s sample app. Additionally, our empirical evaluation shows that choosing an energy-hungry configuration can increase the energy consumption by up to a maximum of 23.97%.  Our guidelines are effective on 3 real-world apps, and our methodology may be used to extract energy-efficient guidelines for frameworks other than the Core Location framework.},
 accepted = {2021-06-15},
 author = {Abdul Ali Bangash and Daniil Tiganov and Karim Ali and Abram Hindle},
 authors = {Abdul Ali Bangash, Daniil Tiganov, Karim Ali, Abram Hindle},
 booktitle = {Proceedings of the 2021 International Conference on Software Maintenance and Evolution (ICSME)},
 code = {bangash2021ICSME-igreenminer},
 date = {2021-06-15},
 funding = {NSERC Discovery},
 location = {Luxembourg City, Luxembourg},
 pagerange = {1--12},
 pages = {1--12},
 rate = {24%},
 role = {Co-Author},
 title = {Energy Efficient Guidelines for iOS Core Location Framework},
 type = {inproceedings},
 url = {http://softwareprocess.ca/pubs/bangash2021ICSME-igreenminer.pdf},
 venue = {Proceedings of the 2021 International Conference on Software Maintenance and Evolution (ICSME)},
 year = {2021}
}