SlideShare a Scribd company logo
1 of 34
Download to read offline
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.
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

What's hot

Centralize Data to Cut Costs and Increasing Quality of Cabling Installations
Centralize Data to Cut Costs and Increasing Quality of Cabling InstallationsCentralize Data to Cut Costs and Increasing Quality of Cabling Installations
Centralize Data to Cut Costs and Increasing Quality of Cabling InstallationsBrother Mobile Solutions
 
10 Reasons To Use Open Source Software-Defined Networking
10 Reasons To Use Open Source Software-Defined Networking10 Reasons To Use Open Source Software-Defined Networking
10 Reasons To Use Open Source Software-Defined NetworkingExtreme Networks
 
Cool Tools_ Clamp Meters _ EC Mag
Cool Tools_ Clamp Meters _ EC MagCool Tools_ Clamp Meters _ EC Mag
Cool Tools_ Clamp Meters _ EC MagAndré Rebelo
 
Mobile Apps Development Competency Building Roadmap
Mobile Apps Development Competency Building RoadmapMobile Apps Development Competency Building Roadmap
Mobile Apps Development Competency Building RoadmapCornelius Mellino
 
Mobile testing. Tips and Tricks
Mobile testing. Tips and TricksMobile testing. Tips and Tricks
Mobile testing. Tips and TricksArtem Pinchuk
 
Rabish kumar singh QA Engineer 3 years experience
Rabish kumar singh QA Engineer 3 years experienceRabish kumar singh QA Engineer 3 years experience
Rabish kumar singh QA Engineer 3 years experienceRavish Singh
 

What's hot (7)

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

Viewers also liked

Performance and Power Profiling on Intel Android Devices
Performance and Power Profiling on Intel Android DevicesPerformance and Power Profiling on Intel Android Devices
Performance and Power Profiling on Intel Android DevicesIntel® Software
 
Not Only Statements: The Role of Textual Analysis in Software Quality
Not Only Statements: The Role of Textual Analysis in Software QualityNot Only Statements: The Role of Textual Analysis in Software Quality
Not Only Statements: The Role of Textual Analysis in Software QualityRocco Oliveto
 
Power optimization for Android apps
Power optimization for Android appsPower optimization for Android apps
Power optimization for Android appsXavier Hallade
 
Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...
Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...
Il Corso di Laurea in Informatica incontra il Mondo del Lavoro - Presentazion...Rocco Oliveto
 
Hypervolume-based search for test case prioritization - ssbse 2015
Hypervolume-based search for test case prioritization - ssbse 2015Hypervolume-based search for test case prioritization - ssbse 2015
Hypervolume-based search for test case prioritization - ssbse 2015Vrije Universiteit Brussel
 
Tpea project, utilizzo sensori per monitorare temperatura e umidità da remoto
Tpea project, utilizzo sensori per monitorare temperatura e umidità da remotoTpea project, utilizzo sensori per monitorare temperatura e umidità da remoto
Tpea project, utilizzo sensori per monitorare temperatura e umidità da remotoVrije Universiteit Brussel
 
Gnome Maps: free software services for a new desktop experience
Gnome Maps: free software services for a new desktop experienceGnome Maps: free software services for a new desktop experience
Gnome Maps: free software services for a new desktop experienceVrije Universiteit Brussel
 
Jointly owned companies as instruments of local government
Jointly owned companies as instruments of local governmentJointly owned companies as instruments of local government
Jointly owned companies as instruments of local governmentVrije Universiteit Brussel
 
GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3
GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3
GSOC 2013 - Un nuovo look and feel per Java basato su GTK+ 3D'Eugenio Elisa
 
A defect prediction model based on the relationships between developers and c...
A defect prediction model based on the relationships between developers and c...A defect prediction model based on the relationships between developers and c...
A defect prediction model based on the relationships between developers and c...Vrije Universiteit Brussel
 
Applicazioni di modelli matematici alla ricerca semantica
Applicazioni di modelli matematici alla ricerca semanticaApplicazioni di modelli matematici alla ricerca semantica
Applicazioni di modelli matematici alla ricerca semanticaVrije Universiteit Brussel
 
Search-based testing of procedural programs:iterative single-target or multi-...
Search-based testing of procedural programs:iterative single-target or multi-...Search-based testing of procedural programs:iterative single-target or multi-...
Search-based testing of procedural programs:iterative single-target or multi-...Vrije Universiteit Brussel
 
Evoluzione della normazione ISO
Evoluzione della normazione ISOEvoluzione della normazione ISO
Evoluzione della normazione ISOD'Eugenio Elisa
 
Power point tut. smart phones
Power point tut. smart phonesPower point tut. smart phones
Power point tut. smart phoneskmuk3
 
The advantages of smart phones
The advantages of smart phonesThe advantages of smart phones
The advantages of smart phonesLefa_M
 

Viewers also liked (20)

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

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

What are the Characteristics of High-rated Apps
What are the Characteristics of High-rated AppsWhat are the Characteristics of High-rated Apps
What are the Characteristics of High-rated AppsSAIL_QU
 
Marco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationMarco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationGreenLabAtDI
 
On the Link Between Mobile App Quality and User Reviews
On the Link Between Mobile App Quality and User ReviewsOn the Link Between Mobile App Quality and User Reviews
On the Link Between Mobile App Quality and User ReviewsSAIL_QU
 
Architecting mobile application
Architecting mobile applicationArchitecting mobile application
Architecting mobile applicationK Senthil Kumar
 
End Users’ Perception of Hybrid Mobile Apps in the Google Play Store
End Users’ Perception of Hybrid Mobile Apps in the Google Play StoreEnd Users’ Perception of Hybrid Mobile Apps in the Google Play Store
End Users’ Perception of Hybrid Mobile Apps in the Google Play StoreIvano Malavolta
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...NITHIN S.S
 
Agile IT: Modern Architecture for Rapid Mobile App Development
Agile IT: Modern Architecture for Rapid Mobile App DevelopmentAgile IT: Modern Architecture for Rapid Mobile App Development
Agile IT: Modern Architecture for Rapid Mobile App DevelopmentAnyPresence
 
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...Kevin Moran
 
Green droid automated diagnosis of energy inefficiency for smartphone applica...
Green droid automated diagnosis of energy inefficiency for smartphone applica...Green droid automated diagnosis of energy inefficiency for smartphone applica...
Green droid automated diagnosis of energy inefficiency for smartphone applica...JPINFOTECH JAYAPRAKASH
 
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...AIRCC Publishing Corporation
 
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...ijcsit
 
Roland van leusden mobile performance testing rtc 2014 v0.6
Roland van leusden   mobile performance testing  rtc 2014 v0.6Roland van leusden   mobile performance testing  rtc 2014 v0.6
Roland van leusden mobile performance testing rtc 2014 v0.6Romania Testing
 
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACTIEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACTtsysglobalsolutions
 
Experitest-Infosys Co-Webinar on Mobile Continuous Integration
Experitest-Infosys Co-Webinar on Mobile Continuous IntegrationExperitest-Infosys Co-Webinar on Mobile Continuous Integration
Experitest-Infosys Co-Webinar on Mobile Continuous IntegrationExperitest
 
[2015/2016] Mobile thinking
[2015/2016] Mobile thinking[2015/2016] Mobile thinking
[2015/2016] Mobile thinkingIvano Malavolta
 
Vehicle Emission Testing System 2
Vehicle Emission Testing System 2Vehicle Emission Testing System 2
Vehicle Emission Testing System 2Lakshika Rasanjali
 
What Do Programmers Know about Software Energy Consumption?
What Do Programmers Know about Software Energy Consumption?What Do Programmers Know about Software Energy Consumption?
What Do Programmers Know about Software Energy Consumption?SAIL_QU
 

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

What are the Characteristics of High-rated Apps
What are the Characteristics of High-rated AppsWhat are the Characteristics of High-rated Apps
What are the Characteristics of High-rated Apps
 
Marco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationMarco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis Presentation
 
On the Link Between Mobile App Quality and User Reviews
On the Link Between Mobile App Quality and User ReviewsOn the Link Between Mobile App Quality and User Reviews
On the Link Between Mobile App Quality and User Reviews
 
Mobilesoft 2017 Keynote
Mobilesoft 2017 KeynoteMobilesoft 2017 Keynote
Mobilesoft 2017 Keynote
 
Greendroid Part2
Greendroid Part2Greendroid Part2
Greendroid Part2
 
Architecting mobile application
Architecting mobile applicationArchitecting mobile application
Architecting mobile application
 
End Users’ Perception of Hybrid Mobile Apps in the Google Play Store
End Users’ Perception of Hybrid Mobile Apps in the Google Play StoreEnd Users’ Perception of Hybrid Mobile Apps in the Google Play Store
End Users’ Perception of Hybrid Mobile Apps in the Google Play Store
 
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
[TTT Meetup] Enhance mobile app testing with performance-centric strategies (...
 
Agile IT: Modern Architecture for Rapid Mobile App Development
Agile IT: Modern Architecture for Rapid Mobile App DevelopmentAgile IT: Modern Architecture for Rapid Mobile App Development
Agile IT: Modern Architecture for Rapid Mobile App Development
 
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
Continuous, Evolutionary and Large-Scale: A New Perspective for Automated Mob...
 
Green droid automated diagnosis of energy inefficiency for smartphone applica...
Green droid automated diagnosis of energy inefficiency for smartphone applica...Green droid automated diagnosis of energy inefficiency for smartphone applica...
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...DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
 
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...
DATA-DRIVEN MODEL FOR NON-FUNCTIONAL REQUIREMENTS IN MOBILE APPLICATION DEVEL...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
Roland van leusden   mobile performance testing  rtc 2014 v0.6Roland van leusden   mobile performance testing  rtc 2014 v0.6
Roland van leusden mobile performance testing rtc 2014 v0.6
 
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACTIEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
IEEE ANDROID APPLICATION 2016 TITLE AND ABSTRACT
 
20141203 sen plago
20141203 sen plago20141203 sen plago
20141203 sen plago
 
Experitest-Infosys Co-Webinar on Mobile Continuous Integration
Experitest-Infosys Co-Webinar on Mobile Continuous IntegrationExperitest-Infosys Co-Webinar on Mobile Continuous Integration
Experitest-Infosys Co-Webinar on Mobile Continuous Integration
 
[2015/2016] Mobile thinking
[2015/2016] Mobile thinking[2015/2016] Mobile thinking
[2015/2016] Mobile thinking
 
Vehicle Emission Testing System 2
Vehicle Emission Testing System 2Vehicle Emission Testing System 2
Vehicle Emission Testing System 2
 
What Do Programmers Know about Software Energy Consumption?
What Do Programmers Know about Software Energy Consumption?What Do Programmers Know about Software Energy Consumption?
What Do Programmers Know about Software Energy Consumption?
 

Recently uploaded

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 

Recently uploaded (20)

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

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.
  • 7.
  • 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?