SlideShare a Scribd company logo
Software-Based Energy Profiling
of Android Apps
Simple, Efficient and Reliable?
Andrea De LuciaAnnibale Panichella
Dario Di Nucci Fabio Palomba
Andy Zaidman
Antonio Prota
Number of smartphone users worldwide from 2014 to 2020
(in billions)
The statistics portal association.
IDC. Top 10 Smartphone Purchase Drivers.
2014. IDC's ConsumerScape 360.
Top 10 Smartphone Purchase Drivers
Battery Life 56% 49% 53%
Ease of Use 33% 39% 38%
Operating System 37% 32% 40%
Touch Screen 34% 34% 37%
Screen Size 37% 22% 34%
Users complain about energy
consumption of their apps.
Energy consumption affects user
ratings on app stores.
Commercial apps do not have less
problems than freely available
applications.
Wilke et al. Energy consumption and efficiency in mobile applications: A user feedback study.
2013. IEEE International Conference on Green Computing.
“(The faulty batteries were made) because we needed higher
capacity batteries for the Note 7”
Koh Dong-jin
Samsung’s mobile business chief
on Samsung Note 7 battery issue
“There is growing consensus that advances in battery
technology and low-power circuit design cannot,
by themselves, meet the energy needs
of future mobile computers”
Flinn and Satyanarayanan
Flinn and Satyanarayanan, Energy-aware adaptation for mobile applications.
1999. ACM Symposium on Operating Systems Principles.
Software-Based Energy Profiling of Android Apps: Simple, Efficient and Reliable?
Lack of tools for quickly and efficiently measure the energy
consumption of mobile applications
Harman et al. Achievements, open problems and challenges for search based software testing.
2015. IEEE International Conference on Software Testing
Hardware-based tools Model-based tools Software-based tools
“Can SW-based tools lead to measurements close to HW-based ones
without any cost overhead?”
Lack of tools for quickly and efficiently measure the energy
consumption of mobile applications
Model-based tools Software-based tools
“Can SW-based tools lead to measurements close to HW-based ones
without any cost overhead?”
Lack of tools for quickly and efficiently measure the energy
consumption of mobile applications
Hardware-based tools
+ Best precision
- Require specialized HW
and people
- Sample frequency
problem
Hardware-based tools Model-based tools Software-based tools
+ Best precision
- Require specialized HW
and people
- Sample frequency
problem
“Can SW-based tools lead to measurements close to HW-based ones
without any cost overhead?”
+ Not require HW
- Less precise
- Need careful parameters
calibration
Lack of tools for quickly and efficiently measure the energy
consumption of mobile applications
Hardware-based tools Model-based tools Software-based tools
+ Best precision
- Require specialized HW
and people
- Sample frequency
problem
+ Not require HW
- Less precise
- Hawthorne effect
“Can SW-based tools lead to measurements close to HW-based ones
without any cost overhead?”
+ Not require HW
- Less precise
- Need careful parameters
calibration
Lack of tools for quickly and efficiently measure the energy
consumption of mobile applications
PETrA
Power Estimation Tool for Android
PETrA
Power Estimation Tool for Android
Based on Project Volta
Self-Modeling Paradigm*
Method Level Granularity
Minimize Hawthorne Effect
Strong Integration with Android OS
Does not require any specialized HW
*Dong and Zhong. Self-constructive high-rate system energy modeling for battery-powered mobile
systems. 2011. ACM International Conference on Mobile Systems, Applications, and Services.
PETrA
Workflow
Install App
Clear Environment
Exercise App
Compute Energy
Consumptions
Save Results
More runs to
perform?
Uninstall App
Smartphone Components
Consumption Info
Powerprofile file
Smartphone Components State
during a Time Frame
PETrA
Energy profile computation
Systrace
Batterystats
Active Methods during a Time
Frame
dmtracedump
Energy Consumption for each
Method Call
Empirical Evaluation
How close are the estimations from PETrA
to a hardware-based tool?
Empirical Evaluation
RQ
54apps*
Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study.
2014. Working Conference on Mining Software Repositories.
Monsoon Toolkit*
414.899 API calls*
321 APIs*
Context selection
Empirical Evaluation
*Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study.
2014. Working Conference on Mining Software Repositories.
Test Environment Setup
LG Nexus 4* Monkeyrunner*
Data Analysis Metrics
10runs
Empirical Evaluation
*Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study.
2014. Working Conference on Mining Software Repositories.
Test Environment Setup
LG Nexus 4* Monkeyrunner*
Data Analysis Metrics
10runs
Mean Magnitude
Relative Error
MMRE
Empirical Evaluation
*Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study.
2014. Working Conference on Mining Software Repositories.
Test Environment Setup
LG Nexus 4* Monkeyrunner*
Data Analysis Metrics
10runs
Mean Magnitude
Relative Error
MMRE
Relative Error
Deviation within x
PRED(x)
Empirical Evaluation
*Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study.
2014. Working Conference on Mining Software Repositories.
Test Environment Setup
LG Nexus 4* Monkeyrunner*
Data Analysis Metrics
10runs
Mean Magnitude
Relative Error
MMRE
Relative Error
Deviation within x
PRED(x)
Ratio under/over
estimations
Results
In 72% of apps MMRE is within 0.01.
In the worst case MMRE is 0.04
95% of method
consumption estimations
are within 5% of error.
Results
89% of estimations are overestimations
11% are underestimations
accumulated noise due to
network usage
strong usage of sensors
Conclusioni
Conclusioni
Conclusioni
Conclusioni
Conclusioni
Conclusioni
Future works
Replicate on larger set of apps
including not APIs methods.
Future works
Develop new techniques for
providing better estimations.
Replicate on larger set of apps
including not APIs methods.
Dario Di Nucci
University of Salerno
ddinucci@unisa.it
http://www.sesa.unisa.it/people/ddinucci/
Thanks for your attention!
Questions?
To what extent developers can handle energy related
development issues?

More Related Content

PDF
Lightweight Detection of Android-specific Code Smells: the aDoctor Project
PDF
Revisiting prior empirical findings for mobile apps an empirical case study...
PPTX
Mobile apps developers oregon
PDF
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
PDF
SAMOA – A Visual Software Analytics Platform for Mobile Applications [ICSM2013]
DOC
Kaneta Resume
PDF
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
PDF
Reptor_Poster
Lightweight Detection of Android-specific Code Smells: the aDoctor Project
Revisiting prior empirical findings for mobile apps an empirical case study...
Mobile apps developers oregon
IFMLEdit.org: Model Driven Rapid Prototyping of Mobile Apps
SAMOA – A Visual Software Analytics Platform for Mobile Applications [ICSM2013]
Kaneta Resume
Openbar Kontich // Mobile app automation on a budget by Wim Vervust & Bram Thys
Reptor_Poster

What's hot (7)

PDF
Centralize Data to Cut Costs and Increasing Quality of Cabling Installations
PDF
10 Reasons To Use Open Source Software-Defined Networking
PDF
Cool Tools_ Clamp Meters _ EC Mag
PDF
Mobile Apps Development Competency Building Roadmap
PPTX
Mobile testing. Tips and Tricks
PPTX
Ip application
PDF
Rabish kumar singh QA Engineer 3 years experience
Centralize Data to Cut Costs and Increasing Quality of Cabling Installations
10 Reasons To Use Open Source Software-Defined Networking
Cool Tools_ Clamp Meters _ EC Mag
Mobile Apps Development Competency Building Roadmap
Mobile testing. Tips and Tricks
Ip application
Rabish kumar singh QA Engineer 3 years experience
Ad

Viewers also liked (20)

PPTX
Performance and Power Profiling on Intel Android Devices
PDF
Not Only Statements: The Role of Textual Analysis in Software Quality
PDF
Power optimization for Android apps
PDF
Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...
PDF
Hypervolume-based search for test case prioritization - ssbse 2015
PDF
Tpea project, utilizzo sensori per monitorare temperatura e umidità da remoto
PPT
PDF
A false digital alibi on mac os x
PDF
Gnome Maps: free software services for a new desktop experience
PDF
Jointly owned companies as instruments of local government
PDF
GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3
PDF
PDF
A defect prediction model based on the relationships between developers and c...
PDF
Applicazioni di modelli matematici alla ricerca semantica
PDF
Search-based testing of procedural programs:iterative single-target or multi-...
PDF
Evoluzione della normazione ISO
PPT
Power point tut. smart phones
PPT
The advantages of smart phones
Performance and Power Profiling on Intel Android Devices
Not Only Statements: The Role of Textual Analysis in Software Quality
Power optimization for Android apps
Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...
Hypervolume-based search for test case prioritization - ssbse 2015
Tpea project, utilizzo sensori per monitorare temperatura e umidità da remoto
A false digital alibi on mac os x
Gnome Maps: free software services for a new desktop experience
Jointly owned companies as instruments of local government
GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3
A defect prediction model based on the relationships between developers and c...
Applicazioni di modelli matematici alla ricerca semantica
Search-based testing of procedural programs:iterative single-target or multi-...
Evoluzione della normazione ISO
Power point tut. smart phones
The advantages of smart phones
Ad

Similar to Software-Based Energy Profiling of Android Apps: Simple, Efficient and Reliable? (20)

PPTX
What are the Characteristics of High-rated Apps
PPTX
Marco Couto's Msc Thesis Presentation
PPT
On the Link Between Mobile App Quality and User Reviews
PPTX
Mobilesoft 2017 Keynote
PPTX
Greendroid Part2
PPTX
apidays New York 2025 - Building Green Software by Marissa Jasso & Katya Drey...
PPTX
Architecting mobile application
PDF
End Users’ Perception of Hybrid Mobile Apps in the Google Play Store
PDF
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
PDF
Agile IT: Modern Architecture for Rapid Mobile App Development
PDF
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
DOCX
Green droid automated diagnosis of energy inefficiency for smartphone applica...
PDF
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
PDF
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
PDF
Roland van leusden mobile performance testing rtc 2014 v0.6
PDF
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
PDF
20141203 sen plago
PDF
Experitest-Infosys Co-Webinar on Mobile Continuous Integration
PDF
[2015/2016] Mobile thinking
PPTX
Vehicle Emission Testing System 2
What are the Characteristics of High-rated Apps
Marco Couto's Msc Thesis Presentation
On the Link Between Mobile App Quality and User Reviews
Mobilesoft 2017 Keynote
Greendroid Part2
apidays New York 2025 - Building Green Software by Marissa Jasso & Katya Drey...
Architecting mobile application
End Users’ Perception of Hybrid Mobile Apps in the Google Play Store
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
Agile IT: Modern Architecture for Rapid Mobile App Development
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Green droid automated diagnosis of energy inefficiency for smartphone applica...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
Roland van leusden mobile performance testing rtc 2014 v0.6
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
20141203 sen plago
Experitest-Infosys Co-Webinar on Mobile Continuous Integration
[2015/2016] Mobile thinking
Vehicle Emission Testing System 2

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PDF
composite construction of structures.pdf
PPTX
web development for engineering and engineering
PDF
PPT on Performance Review to get promotions
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT
Project quality management in manufacturing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Well-logging-methods_new................
PDF
737-MAX_SRG.pdf student reference guides
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Construction Project Organization Group 2.pptx
composite construction of structures.pdf
web development for engineering and engineering
PPT on Performance Review to get promotions
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Internet of Things (IOT) - A guide to understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Project quality management in manufacturing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CH1 Production IntroductoryConcepts.pptx
Foundation to blockchain - A guide to Blockchain Tech
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Automation-in-Manufacturing-Chapter-Introduction.pdf
Well-logging-methods_new................
737-MAX_SRG.pdf student reference guides
Embodied AI: Ushering in the Next Era of Intelligent Systems
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS

Software-Based Energy Profiling of Android Apps: Simple, Efficient and Reliable?

  • 1. Software-Based Energy Profiling of Android Apps Simple, Efficient and Reliable? Andrea De LuciaAnnibale Panichella Dario Di Nucci Fabio Palomba Andy Zaidman Antonio Prota
  • 2. Number of smartphone users worldwide from 2014 to 2020 (in billions) The statistics portal association.
  • 3. IDC. Top 10 Smartphone Purchase Drivers. 2014. IDC's ConsumerScape 360. Top 10 Smartphone Purchase Drivers Battery Life 56% 49% 53% Ease of Use 33% 39% 38% Operating System 37% 32% 40% Touch Screen 34% 34% 37% Screen Size 37% 22% 34%
  • 4. Users complain about energy consumption of their apps. Energy consumption affects user ratings on app stores. Commercial apps do not have less problems than freely available applications. Wilke et al. Energy consumption and efficiency in mobile applications: A user feedback study. 2013. IEEE International Conference on Green Computing.
  • 5. “(The faulty batteries were made) because we needed higher capacity batteries for the Note 7” Koh Dong-jin Samsung’s mobile business chief on Samsung Note 7 battery issue
  • 6. “There is growing consensus that advances in battery technology and low-power circuit design cannot, by themselves, meet the energy needs of future mobile computers” Flinn and Satyanarayanan Flinn and Satyanarayanan, Energy-aware adaptation for mobile applications. 1999. ACM Symposium on Operating Systems Principles.
  • 8. Lack of tools for quickly and efficiently measure the energy consumption of mobile applications Harman et al. Achievements, open problems and challenges for search based software testing. 2015. IEEE International Conference on Software Testing
  • 9. Hardware-based tools Model-based tools Software-based tools “Can SW-based tools lead to measurements close to HW-based ones without any cost overhead?” Lack of tools for quickly and efficiently measure the energy consumption of mobile applications
  • 10. Model-based tools Software-based tools “Can SW-based tools lead to measurements close to HW-based ones without any cost overhead?” Lack of tools for quickly and efficiently measure the energy consumption of mobile applications Hardware-based tools + Best precision - Require specialized HW and people - Sample frequency problem
  • 11. Hardware-based tools Model-based tools Software-based tools + Best precision - Require specialized HW and people - Sample frequency problem “Can SW-based tools lead to measurements close to HW-based ones without any cost overhead?” + Not require HW - Less precise - Need careful parameters calibration Lack of tools for quickly and efficiently measure the energy consumption of mobile applications
  • 12. Hardware-based tools Model-based tools Software-based tools + Best precision - Require specialized HW and people - Sample frequency problem + Not require HW - Less precise - Hawthorne effect “Can SW-based tools lead to measurements close to HW-based ones without any cost overhead?” + Not require HW - Less precise - Need careful parameters calibration Lack of tools for quickly and efficiently measure the energy consumption of mobile applications
  • 14. PETrA Power Estimation Tool for Android Based on Project Volta Self-Modeling Paradigm* Method Level Granularity Minimize Hawthorne Effect Strong Integration with Android OS Does not require any specialized HW *Dong and Zhong. Self-constructive high-rate system energy modeling for battery-powered mobile systems. 2011. ACM International Conference on Mobile Systems, Applications, and Services.
  • 15. PETrA Workflow Install App Clear Environment Exercise App Compute Energy Consumptions Save Results More runs to perform? Uninstall App
  • 16. Smartphone Components Consumption Info Powerprofile file Smartphone Components State during a Time Frame PETrA Energy profile computation Systrace Batterystats Active Methods during a Time Frame dmtracedump Energy Consumption for each Method Call
  • 18. How close are the estimations from PETrA to a hardware-based tool? Empirical Evaluation RQ 54apps* Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study. 2014. Working Conference on Mining Software Repositories. Monsoon Toolkit* 414.899 API calls* 321 APIs* Context selection
  • 19. Empirical Evaluation *Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study. 2014. Working Conference on Mining Software Repositories. Test Environment Setup LG Nexus 4* Monkeyrunner* Data Analysis Metrics 10runs
  • 20. Empirical Evaluation *Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study. 2014. Working Conference on Mining Software Repositories. Test Environment Setup LG Nexus 4* Monkeyrunner* Data Analysis Metrics 10runs Mean Magnitude Relative Error MMRE
  • 21. Empirical Evaluation *Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study. 2014. Working Conference on Mining Software Repositories. Test Environment Setup LG Nexus 4* Monkeyrunner* Data Analysis Metrics 10runs Mean Magnitude Relative Error MMRE Relative Error Deviation within x PRED(x)
  • 22. Empirical Evaluation *Linares-Vasquez et al. Mining energy-greedy api usage patterns in android apps: An empirical study. 2014. Working Conference on Mining Software Repositories. Test Environment Setup LG Nexus 4* Monkeyrunner* Data Analysis Metrics 10runs Mean Magnitude Relative Error MMRE Relative Error Deviation within x PRED(x) Ratio under/over estimations
  • 23. Results In 72% of apps MMRE is within 0.01. In the worst case MMRE is 0.04 95% of method consumption estimations are within 5% of error.
  • 24. Results 89% of estimations are overestimations 11% are underestimations accumulated noise due to network usage strong usage of sensors
  • 31. Future works Replicate on larger set of apps including not APIs methods.
  • 32. Future works Develop new techniques for providing better estimations. Replicate on larger set of apps including not APIs methods.
  • 33. Dario Di Nucci University of Salerno ddinucci@unisa.it http://www.sesa.unisa.it/people/ddinucci/ Thanks for your attention! Questions?
  • 34. To what extent developers can handle energy related development issues?