SlideShare a Scribd company logo
1 of 21
Measuring and Visualizing Energy
Consumption within Software
Code
Tiago Carção
University of Minho, Braga, Portugal
Supervisors:
João Saraiva
Jácome Cunha
Graduate Consortium - VL/HCC 2014
Do the developers concern
themselves with energy consumption
during the development process?
How can we display that information
to the developers?
What type of information should be
presented to the developers?
Why Energy?
1
Why software?
2
Isolation
Responsibility
Identification and improvement
Quantification
What type of information do developers have?
3
Spectrum-based Fault Localization
4
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
1
1
0
0
1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0 1 0 1
Spectrum-based Fault Localization
4
Does the test output matches the expected output?
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
0
0
1 1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0.3
1 0 1 0 1
Spectrum-based Fault Localization
4
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
0
0
1 1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0.7
0.3
0.3
0.3
1 0 1 0 1
Spectrum-based Fault Localization
4
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
0
0
1 1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0.3
0.7
0.3
0.3
0.3
0.7
1 0 1 0 1
Enquire
possible
faults!
Spectrum-based Fault Localization
4
How to adapt the SFL model for Energy Leak detection?
What data to collect from the code execution?
Decide what is a energy leak?
5
int first = 0, second = 1, next, c;
for ( c = 0 ; c < number; c++ ) {
if ( c <= 1 )
next = number;
else {
next = first + second;
first = second;
second = next;
}
}
int fibonacciCalc(int number) {
return next;
}
Source code instrumentation
6
#GET TIME & START MEASURING
int first = 0, second = 1, next, c;
for ( c = 0 ; c < number; c++ ) {
if ( c <= 1 )
next = number;
else {
next = first + second;
first = second;
second = next;
}
}
int fibonacciCalc(int number) {
return next;
}
#GET TIME & END MEASURING
Source code instrumentation
6
Metrics collected
7
SFL Adapted
Tests
t1 t2 t3 t4 t5
8
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
0
0
1 1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0.8 0.3 0.9 0.3 0.7
SFL Adapted
8
Tests
t1 t2 t3 t4 t5
1
1
1
1
1
1
1
1
0
0
1 1
1 1 1
1 1 1
1 1 1
1 0 1
1 0 1
1 1 1
0.1
0.2
0.11
0.23
0.8
0.46
0.8 0.3 0.9 0.3 0.7
SFL Adapted
8
How to represent the information?
9
What we envision
10
Do the developers concern
themselves with energy consumption
during the development process?
How can we display that information
to the developers?
What type of information should be
presented to the developers?
Measuring and Visualizing Energy
Consumption within Software
Code
Tiago Carção
University of Minho, Braga, Portugal
Supervisors:
João Saraiva
Jácome Cunha
Graduate Consortium - VL/HCC 2014

More Related Content

Similar to PresentationMeasuring and Visualizing Energy Consumption within Software Code

Tlc 1223618496327769-9
Tlc 1223618496327769-9Tlc 1223618496327769-9
Tlc 1223618496327769-9
krunal yagnik
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
suhasreddy1
 
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docxTST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
turveycharlyn
 
D03 15 Deliverable Roadmap
D03 15 Deliverable RoadmapD03 15 Deliverable Roadmap
D03 15 Deliverable Roadmap
Leanleaders.org
 
D03 15 Deliverable Roadmap
D03 15 Deliverable RoadmapD03 15 Deliverable Roadmap
D03 15 Deliverable Roadmap
Leanleaders.org
 
Soft And Handling
Soft And HandlingSoft And Handling
Soft And Handling
hiratufail
 

Similar to PresentationMeasuring and Visualizing Energy Consumption within Software Code (20)

Experiences from Designing and Validating a Software Modernization Transforma...
Experiences from Designing and Validating a Software Modernization Transforma...Experiences from Designing and Validating a Software Modernization Transforma...
Experiences from Designing and Validating a Software Modernization Transforma...
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
Fy secondsemester2016
Fy secondsemester2016Fy secondsemester2016
Fy secondsemester2016
 
reliability workshop
reliability workshopreliability workshop
reliability workshop
 
Tlc 1223618496327769-9
Tlc 1223618496327769-9Tlc 1223618496327769-9
Tlc 1223618496327769-9
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
 
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docxTST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
TST102 Fundamentals of Test Evaluation Lesson 19 - Assignm.docx
 
DevOps Continuous Testing and LaaS – The Perfect Match for SDN
DevOps Continuous Testing and LaaS – The Perfect Match for SDNDevOps Continuous Testing and LaaS – The Perfect Match for SDN
DevOps Continuous Testing and LaaS – The Perfect Match for SDN
 
D03 15 Deliverable Roadmap
D03 15 Deliverable RoadmapD03 15 Deliverable Roadmap
D03 15 Deliverable Roadmap
 
D03 15 Deliverable Roadmap
D03 15 Deliverable RoadmapD03 15 Deliverable Roadmap
D03 15 Deliverable Roadmap
 
Testing lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqaTesting lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqa
 
Code coverage based test case selection and prioritization
Code coverage based test case selection and prioritizationCode coverage based test case selection and prioritization
Code coverage based test case selection and prioritization
 
Patterns for Extracting High Level Information from Bug Reports
Patterns for Extracting High Level Information from Bug ReportsPatterns for Extracting High Level Information from Bug Reports
Patterns for Extracting High Level Information from Bug Reports
 
Software testing lab manual
Software testing lab manualSoftware testing lab manual
Software testing lab manual
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
 
Medical Image Segmentation Using Hidden Markov Random Field A Distributed Ap...
Medical Image Segmentation Using Hidden Markov Random Field  A Distributed Ap...Medical Image Segmentation Using Hidden Markov Random Field  A Distributed Ap...
Medical Image Segmentation Using Hidden Markov Random Field A Distributed Ap...
 
Test Automation Day 2018
Test Automation Day 2018Test Automation Day 2018
Test Automation Day 2018
 
Soft And Handling
Soft And HandlingSoft And Handling
Soft And Handling
 
Sumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics MasterySumo Logic Cert Jam - Metrics Mastery
Sumo Logic Cert Jam - Metrics Mastery
 

More from GreenLabAtDI

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
GreenLabAtDI
 
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
GreenLabAtDI
 
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
 

More from GreenLabAtDI (13)

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
 
Locating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeLocating Energy Hotspots in Source Code
Locating Energy Hotspots in Source Code
 
Green Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreen Computing as an Engineering Discipline
Green Computing as an Engineering Discipline
 
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
 
Marco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationMarco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis Presentation
 
Rui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisRui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-Thesis
 
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
 

Recently uploaded

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
Kayode Fayemi
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
 
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
Kayode Fayemi
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
raffaeleoman
 

Recently uploaded (20)

Presentation on Engagement in Book Clubs
Presentation on Engagement in Book ClubsPresentation on Engagement in Book Clubs
Presentation on Engagement in Book Clubs
 
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
 
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Noida Escorts | 100% verified
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
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
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
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
 
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
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
 
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
 
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
 
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
 
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
Busty Desi⚡Call Girls in Sector 51 Noida Escorts >༒8448380779 Escort Service-...
 
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
 
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
Aesthetic Colaba Mumbai Cst Call girls 📞 7738631006 Grant road Call Girls ❤️-...
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptxChiulli_Aurora_Oman_Raffaele_Beowulf.pptx
Chiulli_Aurora_Oman_Raffaele_Beowulf.pptx
 
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
 

PresentationMeasuring and Visualizing Energy Consumption within Software Code

  • 1. Measuring and Visualizing Energy Consumption within Software Code Tiago Carção University of Minho, Braga, Portugal Supervisors: João Saraiva Jácome Cunha Graduate Consortium - VL/HCC 2014
  • 2. Do the developers concern themselves with energy consumption during the development process? How can we display that information to the developers? What type of information should be presented to the developers?
  • 7. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0 1 0 1 Spectrum-based Fault Localization 4 Does the test output matches the expected output?
  • 8. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0.3 1 0 1 0 1 Spectrum-based Fault Localization 4
  • 9. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0.7 0.3 0.3 0.3 1 0 1 0 1 Spectrum-based Fault Localization 4
  • 10. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0.3 0.7 0.3 0.3 0.3 0.7 1 0 1 0 1 Enquire possible faults! Spectrum-based Fault Localization 4
  • 11. How to adapt the SFL model for Energy Leak detection? What data to collect from the code execution? Decide what is a energy leak? 5
  • 12. int first = 0, second = 1, next, c; for ( c = 0 ; c < number; c++ ) { if ( c <= 1 ) next = number; else { next = first + second; first = second; second = next; } } int fibonacciCalc(int number) { return next; } Source code instrumentation 6
  • 13. #GET TIME & START MEASURING int first = 0, second = 1, next, c; for ( c = 0 ; c < number; c++ ) { if ( c <= 1 ) next = number; else { next = first + second; first = second; second = next; } } int fibonacciCalc(int number) { return next; } #GET TIME & END MEASURING Source code instrumentation 6
  • 16. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0.8 0.3 0.9 0.3 0.7 SFL Adapted 8
  • 17. Tests t1 t2 t3 t4 t5 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 0.1 0.2 0.11 0.23 0.8 0.46 0.8 0.3 0.9 0.3 0.7 SFL Adapted 8
  • 18. How to represent the information? 9
  • 20. Do the developers concern themselves with energy consumption during the development process? How can we display that information to the developers? What type of information should be presented to the developers?
  • 21. Measuring and Visualizing Energy Consumption within Software Code Tiago Carção University of Minho, Braga, Portugal Supervisors: João Saraiva Jácome Cunha Graduate Consortium - VL/HCC 2014