SlideShare uma empresa Scribd logo
1 de 13
Monitoring Energy Consumption in 
Android Applications 
Marco Couto 
Departamento de Informática 
Universidade do Minho 
João Saraiva 
Supervisors 
jas@di.uminho.pt 
Universidade do Minho 
João Paulo Fernandes 
jpf@di.ubi.pt 
Universidade da Beira Interior 
Master Thesis Integrated in the GreenSSCM project
Going Green : Motivation 
“The global energy system is on an 
unsustainable path” [Forbes Magazine, 2012] 
2
Going Green : Motivation 
Concern about energy consumption IT is growing 
◦ Mostly focused on hardware; 
Recently, the influence of software has been studied as well 
In mobile devices area, the interest is even bigger 
◦ Due to battery lifetime – critical! 
“close to 50% of 
the energy costs of 
an organization 
can be attributed 
to the IT 
departments” 
- [Harmon and 
Auseklis, 2009] 
“8% of the global 
energy 
consumption 
comes from IT” 
- [Mouftah and 
Kantarci, 2013] 
3
RelatedWork 
Power Tutor - [L Zhang et al., 2010] 
DevScope, AppScope & UserScope - [W Jung et al. , 2012] 
Calculating source line level energy information for android applications - [Li et al., 2013] 
Mining questions about software energy consumption - [Pinto et al., 2014] 
How does code obfuscation impact energy usage? - [Sahin et al., 2014] 
Mining energy-greedy API usage patterns in android apps: An empirical study - [Linares- 
Vasquez et al., 2014] 
4
Green Software : Research Questions 
1. Is it possible to associate energy consumption to different code 
sections? 
2. Is the execution time of a code fragment directly proportional to its 
energy consumption? 
3. Is it possible to develop a tool that can automatically identify potential 
energy-inefficient code fragments? 
5
Our Idea 
Associate energy consumption to different execution scopes 
Check if the energy consumption was excessive 
Classify software code fragments (methods) 
6
The Tool : Green Droid 
7 
App’s 
Source 
Code 
App’s 
Tests 
Instrument 
App’s 
Source 
Code 
I 
App’s 
Tests 
I 
Build 
APP 
Tests 
. Execution Trace 
. Consumption 
. Execution Time 
For each test 
execution… 
Run Analyzer 
Results Display Results
Displaying the 
Results 
Application Under Test: 
0xBenchmark 
8
Method Classification 
Green 
◦ Never invoked when the energy consumption is excessive; 
Red 
◦ Invoked mostly when consumption is excessive; 
◦ 7 out of 10 invocations occur when consumption is excessive; 
Yellow 
◦ Invoked both when consumption is excessive and when is not; 
Uncolored 
◦ Never invoked in any test. 
Base 
Of 
Knowledge 
[Consumptions 
per Second] 
Arithmetic Mean 
9
Results 
EXECUTION TIME TOTAL CONSUMPTION 
10 
CONSUMPTION PER SECOND
Contributions 
Detecting Anomalous Energy Consumption in Android Applications, 
◦ Brazilian Symposium on Programming Languages 
◦ Programming Languages, volume 877 
◦ 15 pages long, LNCS 
1. Is it possible to associate energy consumption to different code 
sections? 
2. Is the execution time of a code fragment directly proportional to its 
energy consumption? 
3. Is it possible to develop a tool that can automatically identify potential 
energy-inefficient code fragments? 
11
Future Work 
Evaluate the precision of the consumption measurements 
Adapt the tool to work as an Eclipse plugin (similar to Gzoltar [J Campos et al., 
2012]) 
Refactoring 
◦ Replacing potential energy-inefficient code fragments with more efficient ones that 
do the same task 
12
Monitoring Energy Consumption in 
Android Applications 
Marco Couto 
Departamento de Informática 
Universidade do Minho 
João Saraiva 
Supervisors 
jas@di.uminho.pt 
Universidade do Minho 
João Paulo Fernandes 
jpf@di.ubi.pt 
Universidade da Beira Interior 
Master Thesis Integrated in the GreenSSCM project

Mais conteúdo relacionado

Semelhante a Marco Couto's Msc Thesis Presentation

Review on Effective Implementation of GATE Resource Sharing Online for the St...
Review on Effective Implementation of GATE Resource Sharing Online for the St...Review on Effective Implementation of GATE Resource Sharing Online for the St...
Review on Effective Implementation of GATE Resource Sharing Online for the St...IRJET Journal
 
Star-rating evaluation model for rating the energy-efficiency level of androi...
Star-rating evaluation model for rating the energy-efficiency level of androi...Star-rating evaluation model for rating the energy-efficiency level of androi...
Star-rating evaluation model for rating the energy-efficiency level of androi...IJECEIAES
 
Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study
 Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study
Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary StudyOlivier Le Goaër
 
An Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsAn Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsIJERA Editor
 
Advancement of ucp with end user
Advancement of ucp with end userAdvancement of ucp with end user
Advancement of ucp with end userijseajournal
 
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
 
Green Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreen Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreenLabAtDI
 
Rui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisRui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisGreenLabAtDI
 
A methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentA methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentIAEME Publication
 
A methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentA methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentIAEME Publication
 
Locating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeLocating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeGreenLabAtDI
 
IRJET - PAA: Productivity Android Application
IRJET -  	  PAA: Productivity Android ApplicationIRJET -  	  PAA: Productivity Android Application
IRJET - PAA: Productivity Android ApplicationIRJET Journal
 
A noble methodology for users’ work
A noble methodology for users’ workA noble methodology for users’ work
A noble methodology for users’ workijseajournal
 

Semelhante a Marco Couto's Msc Thesis Presentation (20)

Review on Effective Implementation of GATE Resource Sharing Online for the St...
Review on Effective Implementation of GATE Resource Sharing Online for the St...Review on Effective Implementation of GATE Resource Sharing Online for the St...
Review on Effective Implementation of GATE Resource Sharing Online for the St...
 
Star-rating evaluation model for rating the energy-efficiency level of androi...
Star-rating evaluation model for rating the energy-efficiency level of androi...Star-rating evaluation model for rating the energy-efficiency level of androi...
Star-rating evaluation model for rating the energy-efficiency level of androi...
 
Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study
 Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study
Ecological Impact of Native vs. Cross-Platform Mobile Apps: a Preliminary Study
 
A Survey to Augment Energy Efficiency of Mobile Devices in Cloud Environment
A Survey to Augment Energy Efficiency of Mobile Devices in Cloud EnvironmentA Survey to Augment Energy Efficiency of Mobile Devices in Cloud Environment
A Survey to Augment Energy Efficiency of Mobile Devices in Cloud Environment
 
50120130405029
5012013040502950120130405029
50120130405029
 
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVEDEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
 
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVEDEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
DEVELOPMENT OF A SOFTWARE MAINTENANCE COST ESTIMATION MODEL: 4 TH GL PERSPECTIVE
 
An Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsAn Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using Metrics
 
D502023439
D502023439D502023439
D502023439
 
D502023439
D502023439D502023439
D502023439
 
Advancement of ucp with end user
Advancement of ucp with end userAdvancement of ucp with end user
Advancement of ucp with end user
 
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?
 
Green Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreen Computing as an Engineering Discipline
Green Computing as an Engineering Discipline
 
Rui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisRui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-Thesis
 
A methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentA methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application development
 
A methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application developmentA methodology for model driven multiplatform mobile application development
A methodology for model driven multiplatform mobile application development
 
ijeat.pdf
ijeat.pdfijeat.pdf
ijeat.pdf
 
Locating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeLocating Energy Hotspots in Source Code
Locating Energy Hotspots in Source Code
 
IRJET - PAA: Productivity Android Application
IRJET -  	  PAA: Productivity Android ApplicationIRJET -  	  PAA: Productivity Android Application
IRJET - PAA: Productivity Android Application
 
A noble methodology for users’ work
A noble methodology for users’ workA noble methodology for users’ work
A noble methodology for users’ work
 

Mais de GreenLabAtDI

Let's Talk a Bit About: Green Software
Let's Talk a Bit About: Green SoftwareLet's Talk a Bit About: Green Software
Let's Talk a Bit About: Green SoftwareGreenLabAtDI
 
Products go Green: Worst-Case Energy Consumption in Software Product Lines
Products go Green: Worst-Case Energy Consumption in Software Product LinesProducts go Green: Worst-Case Energy Consumption in Software Product Lines
Products go Green: Worst-Case Energy Consumption in Software Product LinesGreenLabAtDI
 
Towards a Green Ranking for Programming Languages
Towards a Green Ranking for Programming LanguagesTowards a Green Ranking for Programming Languages
Towards a Green Ranking for Programming LanguagesGreenLabAtDI
 
Static Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachStatic Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachGreenLabAtDI
 
The Influence of the Java Collection Framework on Overall Energy Consumption
The Influence of the Java Collection Framework on Overall Energy ConsumptionThe Influence of the Java Collection Framework on Overall Energy Consumption
The Influence of the Java Collection Framework on Overall Energy ConsumptionGreenLabAtDI
 
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...GreenLabAtDI
 
Green Software Lab
Green Software LabGreen Software Lab
Green Software LabGreenLabAtDI
 
GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem
GreenDroid: A Tool for Analysing Power Consumption in the Android EcosystemGreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem
GreenDroid: A Tool for Analysing Power Consumption in the Android EcosystemGreenLabAtDI
 
Detecting Anomalous Energy Consumption in Android Applications
Detecting Anomalous Energy Consumption in Android ApplicationsDetecting Anomalous Energy Consumption in Android Applications
Detecting Anomalous Energy Consumption in Android ApplicationsGreenLabAtDI
 
PresentationMeasuring and Visualizing Energy Consumption within Software Code
PresentationMeasuring and Visualizing Energy Consumption within Software CodePresentationMeasuring and Visualizing Energy Consumption within Software Code
PresentationMeasuring and Visualizing Energy Consumption within Software CodeGreenLabAtDI
 

Mais de GreenLabAtDI (10)

Let's Talk a Bit About: Green Software
Let's Talk a Bit About: Green SoftwareLet's Talk a Bit About: Green Software
Let's Talk a Bit About: Green Software
 
Products go Green: Worst-Case Energy Consumption in Software Product Lines
Products go Green: Worst-Case Energy Consumption in Software Product LinesProducts go Green: Worst-Case Energy Consumption in Software Product Lines
Products go Green: Worst-Case Energy Consumption in Software Product Lines
 
Towards a Green Ranking for Programming Languages
Towards a Green Ranking for Programming LanguagesTowards a Green Ranking for Programming Languages
Towards a Green Ranking for Programming Languages
 
Static Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario ApproachStatic Energy Prediction in Software: A Worst-Case Scenario Approach
Static Energy Prediction in Software: A Worst-Case Scenario Approach
 
The Influence of the Java Collection Framework on Overall Energy Consumption
The Influence of the Java Collection Framework on Overall Energy ConsumptionThe Influence of the Java Collection Framework on Overall Energy Consumption
The Influence of the Java Collection Framework on Overall Energy Consumption
 
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...
Haskell in Green Land: Analyzing the Energy Behavior of a Purely Functional L...
 
Green Software Lab
Green Software LabGreen Software Lab
Green Software Lab
 
GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem
GreenDroid: A Tool for Analysing Power Consumption in the Android EcosystemGreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem
GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem
 
Detecting Anomalous Energy Consumption in Android Applications
Detecting Anomalous Energy Consumption in Android ApplicationsDetecting Anomalous Energy Consumption in Android Applications
Detecting Anomalous Energy Consumption in Android Applications
 
PresentationMeasuring and Visualizing Energy Consumption within Software Code
PresentationMeasuring and Visualizing Energy Consumption within Software CodePresentationMeasuring and Visualizing Energy Consumption within Software Code
PresentationMeasuring and Visualizing Energy Consumption within Software Code
 

Último

BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoKayode Fayemi
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxNikitaBankoti2
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubssamaasim06
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Baileyhlharris
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfSenaatti-kiinteistöt
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyPooja Nehwal
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfSkillCertProExams
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaKayode Fayemi
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Vipesco
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardsticksaastr
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsaqsarehman5055
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Hasting Chen
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxraffaeleoman
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatmentnswingard
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCamilleBoulbin1
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxmohammadalnahdi22
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar TrainingKylaCullinane
 

Último (20)

BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 93 Noida Escorts >༒8448380779 Escort Service
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docxANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
 
Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdfThe workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
The workplace ecosystem of the future 24.4.2024 Fabritius_share ii.pdf
 
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night EnjoyCall Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
If this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New NigeriaIf this Giant Must Walk: A Manifesto for a New Nigeria
If this Giant Must Walk: A Manifesto for a New Nigeria
 
Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510Thirunelveli call girls Tamil escorts 7877702510
Thirunelveli call girls Tamil escorts 7877702510
 
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, YardstickSaaStr Workshop Wednesday w/ Lucas Price, Yardstick
SaaStr Workshop Wednesday w/ Lucas Price, Yardstick
 
Air breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animalsAir breathing and respiratory adaptations in diver animals
Air breathing and respiratory adaptations in diver animals
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
Causes of poverty in France presentation.pptx
Causes of poverty in France presentation.pptxCauses of poverty in France presentation.pptx
Causes of poverty in France presentation.pptx
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 97 Noida Escorts >༒8448380779 Escort Service
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 

Marco Couto's Msc Thesis Presentation

  • 1. Monitoring Energy Consumption in Android Applications Marco Couto Departamento de Informática Universidade do Minho João Saraiva Supervisors jas@di.uminho.pt Universidade do Minho João Paulo Fernandes jpf@di.ubi.pt Universidade da Beira Interior Master Thesis Integrated in the GreenSSCM project
  • 2. Going Green : Motivation “The global energy system is on an unsustainable path” [Forbes Magazine, 2012] 2
  • 3. Going Green : Motivation Concern about energy consumption IT is growing ◦ Mostly focused on hardware; Recently, the influence of software has been studied as well In mobile devices area, the interest is even bigger ◦ Due to battery lifetime – critical! “close to 50% of the energy costs of an organization can be attributed to the IT departments” - [Harmon and Auseklis, 2009] “8% of the global energy consumption comes from IT” - [Mouftah and Kantarci, 2013] 3
  • 4. RelatedWork Power Tutor - [L Zhang et al., 2010] DevScope, AppScope & UserScope - [W Jung et al. , 2012] Calculating source line level energy information for android applications - [Li et al., 2013] Mining questions about software energy consumption - [Pinto et al., 2014] How does code obfuscation impact energy usage? - [Sahin et al., 2014] Mining energy-greedy API usage patterns in android apps: An empirical study - [Linares- Vasquez et al., 2014] 4
  • 5. Green Software : Research Questions 1. Is it possible to associate energy consumption to different code sections? 2. Is the execution time of a code fragment directly proportional to its energy consumption? 3. Is it possible to develop a tool that can automatically identify potential energy-inefficient code fragments? 5
  • 6. Our Idea Associate energy consumption to different execution scopes Check if the energy consumption was excessive Classify software code fragments (methods) 6
  • 7. The Tool : Green Droid 7 App’s Source Code App’s Tests Instrument App’s Source Code I App’s Tests I Build APP Tests . Execution Trace . Consumption . Execution Time For each test execution… Run Analyzer Results Display Results
  • 8. Displaying the Results Application Under Test: 0xBenchmark 8
  • 9. Method Classification Green ◦ Never invoked when the energy consumption is excessive; Red ◦ Invoked mostly when consumption is excessive; ◦ 7 out of 10 invocations occur when consumption is excessive; Yellow ◦ Invoked both when consumption is excessive and when is not; Uncolored ◦ Never invoked in any test. Base Of Knowledge [Consumptions per Second] Arithmetic Mean 9
  • 10. Results EXECUTION TIME TOTAL CONSUMPTION 10 CONSUMPTION PER SECOND
  • 11. Contributions Detecting Anomalous Energy Consumption in Android Applications, ◦ Brazilian Symposium on Programming Languages ◦ Programming Languages, volume 877 ◦ 15 pages long, LNCS 1. Is it possible to associate energy consumption to different code sections? 2. Is the execution time of a code fragment directly proportional to its energy consumption? 3. Is it possible to develop a tool that can automatically identify potential energy-inefficient code fragments? 11
  • 12. Future Work Evaluate the precision of the consumption measurements Adapt the tool to work as an Eclipse plugin (similar to Gzoltar [J Campos et al., 2012]) Refactoring ◦ Replacing potential energy-inefficient code fragments with more efficient ones that do the same task 12
  • 13. Monitoring Energy Consumption in Android Applications Marco Couto Departamento de Informática Universidade do Minho João Saraiva Supervisors jas@di.uminho.pt Universidade do Minho João Paulo Fernandes jpf@di.ubi.pt Universidade da Beira Interior Master Thesis Integrated in the GreenSSCM project

Notas do Editor

  1. Queria começar esta apresentação por referir uma frase de um artigo, publicado em 2012 na revista Forbes, que diz: “O sistema global de energia caminha para um rumo insustentável”. Isto significa que o consumo de energia está a exceder a produção.
  2. Motivados por este problema, e pelo facto de uma boa parte do consumo mundial de energia ser devido às tecnologias (como indicam as referências), empresas e investigadores têm-no abordado nos últimos anos. Inicialmente, o interesse residia no hardware, porque é o que de facto consome energia. Mas recentemente tem-se estudado a influência do software no consumo energético, pois é de facto quem dita as tarefas do hardware. No âmbito desta dissertação (energia em dispositivos móveis) o interesse é ainda maior, devido à bateria.
  3. Mas que software é que faz o hardware gastar energia nos dispositivos móveis? Aplicações. Durante a investigação que levei a cabo, encontrei alguns trabalhos que visavam estudar o consumo de energia gerado por aplicações. Escolhi os melhores 6 (na minha opinião), e dividi-os em 2 categorias: os que usam medidores externos e os que usam modelos estatísticos de energia, gerados pelos aparelhos externos. Para o projeto, usamos o primeiro (Power Tutor), e o que ele nos dá é isto: várias formas de vermos a energia que cada aplicação está a gastar, atualizando os valores de 1 em 1 segundo.
  4. Com a ferramenta escolhida, selecionamos 3 perguntas de investigação a que pretendemos responder com esta tese: (enumerá-las)
  5. Para tentar responder a essas questões, e tendo em conta aquilo a que temos acesso, a nossa ideia passou por calcular para cada execução da aplicação (teste) o seu consumo energético, e determinar se esse consumo é excessivo ou não. Para além disso, guardamos a sequência de métodos invocados em cada execução, e no final classificamo-los
  6. (Explicar como funciona a ferramenta) … no final, o analisador vai apresentar os resultados dessa análise…
  7. … desta forma. Um gráfico sunburst, em que cada camada corresponde a um nível de detalhe da aplicação, desde package a método.
  8. Como é que os métodos são classificados? Bom, nós partimos de uma base de conhecimento que consiste numa lista de consumos de energia por segundo de aplicações já testadas. Cada vez que uma nova aplicação é testada, todos os valores correspondentes aos consumos por segundo de cada teste são adicionados a esta base. Para o consumo de um teste ser excessivo, ele tem de ser superior à média dos consumos identificados até aqui. Os métodos são classificados de acordo com isto da seguinte forma: (explicar green, red e yellow)
  9. Os resultados que temos mostram que existe à primeira vista uma semelhança entre o consumo total de energia de cada teste e o tempo de execução, mas se olharmos com mais cuidado para o consumo por segundo conseguimos identificar facilmente 2 ou 3 pontos dispersos no consumo. Esses são os consumos excessivos, e mostra que consumo e tempo de execução não são sempre diretamente proporcionais, caso contrário este gráfico seria uma linha horizontal.
  10. Como contribuições a este trabalho, temos o artigo publicado na conferência SBLP ‘14, que é uma versão mais curta do trabalho desta dissertação, com menos resultados e com referência também à ferramenta. Para além disso, foram respondidas as questões iniciais. 1 – Sim, é possível. Uma lista de métodos é um fragmento de código. 2 – Não, pelo menos não em todos os casos. Naquele que foi apresentado aqui não, e há outros casos no documento final. 3 – Sim, é uma das contribuições, um protótipo da ferramenta.
  11. Como nenhum trabalho está 100% finalizado, nós consideramos algumas melhorias que queríamos futuramente implementar.