SlideShare a Scribd company logo
GreenDroid:A Tool for Analysing Power
Consumption in the Android Ecosystem
Marco Couto*¶, Jácome Cunha*§, João Paulo Fernandes‡,
Rui Pereira*¶, and João Saraiva*¶
1
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
* HASLab/INESC ¶ Universidade do Minho, Portugal
‡ RELEASE, Universidade da Beira Interior, Portugal
§ Universidade Nova de Lisboa, Portugal
{mcouto, ruipereira, jas}@di.uminho.pt, jacome@fct.unl.pt, jpf@di.ubi.pt
Going Green
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
2
+ =
Green Computing
 Caught the attention of many companies allowing them to save:
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
3
“close to 50% of the energy costs of an organization can be
attributed to the IT departments”
- [Harmon and Auseklis, 2009]
“up to 90% of energy used by ICT hardware can be attributed to
software”
- [Standard, 2013]
Green Software
 Reducing energy consumption through software analysis and optimization
 Problem:
 How to analyze
 How to interpret
 How to improve
 In mobile devices, the interest is quite large
 Battery lifetime is critical!
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
4
GreenDroid
 Power consumption model oriented
 Consumption per execution and program trace
 Predicts possible power-expensive methods
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
5
GreenDroid: Basic Workflow 6
Source
Code
Tests
Instrument
Source
Code
I
Tests
I
Build
APP
Tests
. Execution Trace
. Consumption
. Execution Time
*For each
Analyzer
Power Consumption
Model
Build
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
Power Consumption Model – Power Tutor
 Hardware components have states
 e.g., CPU has different percentages of usage
 Each state implies different consumptions
 Idea: assign consumption to each component state
 When monitoring consumption:
 Check the components’ states;
 Determine consumption using the power model
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
7
The Model as an API
 Power Tutor is an Android application
 Problem: cannot be invoked in other applications
 Solution: transform the model into an API
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
8
1. traceMethod()
2. config()
3. start()
4. stop()
Program trace
Initializes Power Consumption Model
Starts the power monitoring thread
Stops the power monitoring thread
Instrumentation: Source Code
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
9
Source
Code
public class C1{
...
public void m1(){
Estimator.traceMethod(“m1”, “C1”);
...
}
...
}
public class C1{
...
public void m1(){
...
}
...
}
Instrumentation: Tests
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
10
Tests
public class TestSuite1{
...
public void setUp(){
...
}
public void tearDown(){
...
}
...
...
}
public class TestSuite1{
...
public void setUp(){
Estimator.config(“package”,
_______android.os.Process.myUid(),
this.getContext());
Estimator.start();
...
}
public void tearDown(){
Estimator.stop()
...
}
...
...
}
Result Analysis
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
11
Power Consumption Graphics
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
12
Power Consumption Graphics
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
13
Power Consumption Graphics
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
14
 Method classifications and analysis
technique based on prior research
 “Detecting Anomalous Energy
Consumption in Android
Applications” – SBLP’2014
Conclusions
 GreenDroid Tool
 Analyze power consumption of Android apps
 Detect possible power leaks
 Plan to extend GreenDroid approach to analyze other applications
 Download at: https://github.com/greensoftwarelab/GreenDroid
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
15
GreenDroid:A Tool for Analysing Power
Consumption in the Android Ecosystem
Marco Couto*¶, Jácome Cunha*§, João Paulo Fernandes‡,
Rui Pereira*¶, and João Saraiva*¶
16
Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
* HASLab/INESC ¶ Universidade do Minho, Portugal
‡ RELEASE, Universidade da Beira Interior, Portugal
§ Universidade Nova de Lisboa, Portugal
{mcouto, ruipereira, jas}@di.uminho.pt, jacome@fct.unl.pt, jpf@di.ubi.pt

More Related Content

What's hot

greendroid
greendroidgreendroid
greendroid
himabindu555
 
Greendroid ppt
Greendroid pptGreendroid ppt
Greendroid ppt
Seminar Links
 
GreenDroid
GreenDroidGreenDroid
GreenDroid
Sourav Sasidharan
 
GreenDroid
GreenDroidGreenDroid
GreenDroid
Snigdha Makarla
 
Green droid ieee-micro
Green droid ieee-microGreen droid ieee-micro
Green droid ieee-microRAJENDRA469
 
Energy simulation & analysis
Energy simulation & analysisEnergy simulation & analysis
TenLeversSmartEngg_ADe_01Nov2016
TenLeversSmartEngg_ADe_01Nov2016TenLeversSmartEngg_ADe_01Nov2016
TenLeversSmartEngg_ADe_01Nov2016Dr. Aloknath De
 
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
Larry Smarr
 
prathap resume-14 professional
prathap resume-14 professionalprathap resume-14 professional
prathap resume-14 professionalPrathap Tatapudi
 
DWS15 - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
DWS15  - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...DWS15  - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
DWS15 - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
IDATE DigiWorld
 
Building Performance Modeling
Building Performance ModelingBuilding Performance Modeling
Building Performance Modeling
YRG sustainability
 
Technology Development and Commercialization at Argonne National Laboratory
Technology Development and Commercialization at Argonne National LaboratoryTechnology Development and Commercialization at Argonne National Laboratory
Technology Development and Commercialization at Argonne National Laboratory
asauers
 
Environmental building design performance modelling and simulation
Environmental building design performance modelling and simulationEnvironmental building design performance modelling and simulation
Environmental building design performance modelling and simulation
nagham ali hasan
 
GREEN CLOUD COMPUTING-A Data Center Approach
GREEN CLOUD COMPUTING-A Data Center ApproachGREEN CLOUD COMPUTING-A Data Center Approach
GREEN CLOUD COMPUTING-A Data Center Approach
Dr Sukhpal Singh Gill
 
Approach and future work on the formation of concept of smart grid allan p...
Approach and future work on the formation of concept of smart grid    allan p...Approach and future work on the formation of concept of smart grid    allan p...
Approach and future work on the formation of concept of smart grid allan p...Albert Yefimov
 
Green Computing
Green ComputingGreen Computing
Green Computing
Eklavya Gupta
 

What's hot (19)

greendroid
greendroidgreendroid
greendroid
 
Greendroid ppt
Greendroid pptGreendroid ppt
Greendroid ppt
 
GreenDroid
GreenDroidGreenDroid
GreenDroid
 
GreenDroid
GreenDroidGreenDroid
GreenDroid
 
greendroid ppts
greendroid pptsgreendroid ppts
greendroid ppts
 
Green droid ieee-micro
Green droid ieee-microGreen droid ieee-micro
Green droid ieee-micro
 
Energy simulation & analysis
Energy simulation & analysisEnergy simulation & analysis
Energy simulation & analysis
 
TenLeversSmartEngg_ADe_01Nov2016
TenLeversSmartEngg_ADe_01Nov2016TenLeversSmartEngg_ADe_01Nov2016
TenLeversSmartEngg_ADe_01Nov2016
 
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
Project GreenLight Measuring the Energy Cost of Applications, Algorithms, and...
 
prathap resume-14 professional
prathap resume-14 professionalprathap resume-14 professional
prathap resume-14 professional
 
DWS15 - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
DWS15  - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...DWS15  - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
DWS15 - Future Digital Economy Forum - More on Moore's Law - Giorgio Cesana ...
 
Building Performance Modeling
Building Performance ModelingBuilding Performance Modeling
Building Performance Modeling
 
Technology Development and Commercialization at Argonne National Laboratory
Technology Development and Commercialization at Argonne National LaboratoryTechnology Development and Commercialization at Argonne National Laboratory
Technology Development and Commercialization at Argonne National Laboratory
 
Environmental building design performance modelling and simulation
Environmental building design performance modelling and simulationEnvironmental building design performance modelling and simulation
Environmental building design performance modelling and simulation
 
GREEN CLOUD COMPUTING-A Data Center Approach
GREEN CLOUD COMPUTING-A Data Center ApproachGREEN CLOUD COMPUTING-A Data Center Approach
GREEN CLOUD COMPUTING-A Data Center Approach
 
Imagineering
ImagineeringImagineering
Imagineering
 
Approach and future work on the formation of concept of smart grid allan p...
Approach and future work on the formation of concept of smart grid    allan p...Approach and future work on the formation of concept of smart grid    allan p...
Approach and future work on the formation of concept of smart grid allan p...
 
Green Computing
Green ComputingGreen Computing
Green Computing
 
EED Software Products
EED Software  ProductsEED Software  Products
EED Software Products
 

Similar to GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem

jStanley: Placing a Green Thumb on Java Collections
jStanley: Placing a Green Thumb on  Java CollectionsjStanley: Placing a Green Thumb on  Java Collections
jStanley: Placing a Green Thumb on Java Collections
Jácome Cunha
 
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOM
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOMEuropean Green IT Webinar 2014 - Erasmus Mundus Master PERCCOM
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOMGreenLabCenter
 
Energy prediction for greenhouse productions
Energy prediction for greenhouse productionsEnergy prediction for greenhouse productions
Energy prediction for greenhouse productions
Stauffer Vincent
 
Green ICT-Calculation of carbon footprint of an academic facility
Green ICT-Calculation of carbon footprint of an academic facilityGreen ICT-Calculation of carbon footprint of an academic facility
Green ICT-Calculation of carbon footprint of an academic facility
Kriti Doneria
 
PhD Pre-Thesis
PhD Pre-ThesisPhD Pre-Thesis
PhD Pre-Thesis
Rui Pereira
 
Rui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisRui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-Thesis
GreenLabAtDI
 
Marco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationMarco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis Presentation
GreenLabAtDI
 
Air Pollution Prediction using Machine Learning
Air Pollution Prediction using Machine LearningAir Pollution Prediction using Machine Learning
Air Pollution Prediction using Machine Learning
IRJET Journal
 
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
 
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
ICT FOOTPRINT .eu
 
Green it
Green itGreen it
End User Development in the IoT: a Semantic Approach
End User Development in the IoT: a Semantic ApproachEnd User Development in the IoT: a Semantic Approach
End User Development in the IoT: a Semantic Approach
Alberto Monge Roffarello
 
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
GreenLabAtDI
 
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptxGEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
Geetha982072
 
A test bed for smart energy education in the field of computer engineering
A test bed for smart energy education in the field of computer engineeringA test bed for smart energy education in the field of computer engineering
A test bed for smart energy education in the field of computer engineering
Technological Ecosystems for Enhancing Multiculturality
 
Software Sustainability: The Challenges and Opportunities for Enterprises and...
Software Sustainability: The Challenges and Opportunities for Enterprises and...Software Sustainability: The Challenges and Opportunities for Enterprises and...
Software Sustainability: The Challenges and Opportunities for Enterprises and...
Patricia Lago
 
High scalable applications with Python
High scalable applications with PythonHigh scalable applications with Python
High scalable applications with Python
Giuseppe Broccolo
 
Minh nguyen 2021 (2)
Minh nguyen 2021 (2)Minh nguyen 2021 (2)
Minh nguyen 2021 (2)
MinhNguyen795360
 
Green Computing Seminar
Green Computing SeminarGreen Computing Seminar
Green Computing Seminar
Nikunj_Agrawal
 
Locating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeLocating Energy Hotspots in Source Code
Locating Energy Hotspots in Source Code
GreenLabAtDI
 

Similar to GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem (20)

jStanley: Placing a Green Thumb on Java Collections
jStanley: Placing a Green Thumb on  Java CollectionsjStanley: Placing a Green Thumb on  Java Collections
jStanley: Placing a Green Thumb on Java Collections
 
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOM
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOMEuropean Green IT Webinar 2014 - Erasmus Mundus Master PERCCOM
European Green IT Webinar 2014 - Erasmus Mundus Master PERCCOM
 
Energy prediction for greenhouse productions
Energy prediction for greenhouse productionsEnergy prediction for greenhouse productions
Energy prediction for greenhouse productions
 
Green ICT-Calculation of carbon footprint of an academic facility
Green ICT-Calculation of carbon footprint of an academic facilityGreen ICT-Calculation of carbon footprint of an academic facility
Green ICT-Calculation of carbon footprint of an academic facility
 
PhD Pre-Thesis
PhD Pre-ThesisPhD Pre-Thesis
PhD Pre-Thesis
 
Rui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-ThesisRui Pereira's PhD Pre-Thesis
Rui Pereira's PhD Pre-Thesis
 
Marco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis PresentationMarco Couto's Msc Thesis Presentation
Marco Couto's Msc Thesis Presentation
 
Air Pollution Prediction using Machine Learning
Air Pollution Prediction using Machine LearningAir Pollution Prediction using Machine Learning
Air Pollution Prediction using Machine Learning
 
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
 
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
ICTFOOTPRINT.eu at Data Centre World - a web platform to help organisations i...
 
Green it
Green itGreen it
Green it
 
End User Development in the IoT: a Semantic Approach
End User Development in the IoT: a Semantic ApproachEnd User Development in the IoT: a Semantic Approach
End User Development in the IoT: a Semantic Approach
 
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
 
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptxGEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
GEETHAhshansbbsbsbhshnsnsn_INTERNSHIP.pptx
 
A test bed for smart energy education in the field of computer engineering
A test bed for smart energy education in the field of computer engineeringA test bed for smart energy education in the field of computer engineering
A test bed for smart energy education in the field of computer engineering
 
Software Sustainability: The Challenges and Opportunities for Enterprises and...
Software Sustainability: The Challenges and Opportunities for Enterprises and...Software Sustainability: The Challenges and Opportunities for Enterprises and...
Software Sustainability: The Challenges and Opportunities for Enterprises and...
 
High scalable applications with Python
High scalable applications with PythonHigh scalable applications with Python
High scalable applications with Python
 
Minh nguyen 2021 (2)
Minh nguyen 2021 (2)Minh nguyen 2021 (2)
Minh nguyen 2021 (2)
 
Green Computing Seminar
Green Computing SeminarGreen Computing Seminar
Green Computing Seminar
 
Locating Energy Hotspots in Source Code
Locating Energy Hotspots in Source CodeLocating Energy Hotspots in Source Code
Locating Energy Hotspots in Source Code
 

More from 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 Software
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
 
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
GreenLabAtDI
 
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
GreenLabAtDI
 
Green Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreen Computing as an Engineering Discipline
Green Computing as an Engineering Discipline
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
 
Green Software Lab
Green Software LabGreen Software Lab
Green Software Lab
GreenLabAtDI
 
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
GreenLabAtDI
 

More from GreenLabAtDI (8)

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
 
Green Computing as an Engineering Discipline
Green Computing as an Engineering DisciplineGreen Computing as an Engineering Discipline
Green Computing as an Engineering Discipline
 
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
 
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
 

Recently uploaded

Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Dutch Power
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
SkillCertProExams
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Rosie Wells
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Dutch Power
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
gharris9
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
amekonnen
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
Frederic Leger
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
kkirkland2
 
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AwangAniqkmals
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 

Recently uploaded (19)

Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
Presentatie 8. Joost van der Linde & Daniel Anderton - Eliq 28 mei 2024
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
 
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
AWANG ANIQKMALBIN AWANG TAJUDIN B22080004 ASSIGNMENT 2 MPU3193 PHILOSOPHY AND...
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 

GreenDroid: A Tool for Analysing Power Consumption in the Android Ecosystem

  • 1. GreenDroid:A Tool for Analysing Power Consumption in the Android Ecosystem Marco Couto*¶, Jácome Cunha*§, João Paulo Fernandes‡, Rui Pereira*¶, and João Saraiva*¶ 1 Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt * HASLab/INESC ¶ Universidade do Minho, Portugal ‡ RELEASE, Universidade da Beira Interior, Portugal § Universidade Nova de Lisboa, Portugal {mcouto, ruipereira, jas}@di.uminho.pt, jacome@fct.unl.pt, jpf@di.ubi.pt
  • 2. Going Green Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 2 + =
  • 3. Green Computing  Caught the attention of many companies allowing them to save: Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 3 “close to 50% of the energy costs of an organization can be attributed to the IT departments” - [Harmon and Auseklis, 2009] “up to 90% of energy used by ICT hardware can be attributed to software” - [Standard, 2013]
  • 4. Green Software  Reducing energy consumption through software analysis and optimization  Problem:  How to analyze  How to interpret  How to improve  In mobile devices, the interest is quite large  Battery lifetime is critical! Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 4
  • 5. GreenDroid  Power consumption model oriented  Consumption per execution and program trace  Predicts possible power-expensive methods Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 5
  • 6. GreenDroid: Basic Workflow 6 Source Code Tests Instrument Source Code I Tests I Build APP Tests . Execution Trace . Consumption . Execution Time *For each Analyzer Power Consumption Model Build Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt
  • 7. Power Consumption Model – Power Tutor  Hardware components have states  e.g., CPU has different percentages of usage  Each state implies different consumptions  Idea: assign consumption to each component state  When monitoring consumption:  Check the components’ states;  Determine consumption using the power model Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 7
  • 8. The Model as an API  Power Tutor is an Android application  Problem: cannot be invoked in other applications  Solution: transform the model into an API Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 8 1. traceMethod() 2. config() 3. start() 4. stop() Program trace Initializes Power Consumption Model Starts the power monitoring thread Stops the power monitoring thread
  • 9. Instrumentation: Source Code Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 9 Source Code public class C1{ ... public void m1(){ Estimator.traceMethod(“m1”, “C1”); ... } ... } public class C1{ ... public void m1(){ ... } ... }
  • 10. Instrumentation: Tests Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 10 Tests public class TestSuite1{ ... public void setUp(){ ... } public void tearDown(){ ... } ... ... } public class TestSuite1{ ... public void setUp(){ Estimator.config(“package”, _______android.os.Process.myUid(), this.getContext()); Estimator.start(); ... } public void tearDown(){ Estimator.stop() ... } ... ... }
  • 11. Result Analysis Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 11
  • 12. Power Consumption Graphics Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 12
  • 13. Power Consumption Graphics Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 13
  • 14. Power Consumption Graphics Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 14  Method classifications and analysis technique based on prior research  “Detecting Anomalous Energy Consumption in Android Applications” – SBLP’2014
  • 15. Conclusions  GreenDroid Tool  Analyze power consumption of Android apps  Detect possible power leaks  Plan to extend GreenDroid approach to analyze other applications  Download at: https://github.com/greensoftwarelab/GreenDroid Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt 15
  • 16. GreenDroid:A Tool for Analysing Power Consumption in the Android Ecosystem Marco Couto*¶, Jácome Cunha*§, João Paulo Fernandes‡, Rui Pereira*¶, and João Saraiva*¶ 16 Informatics ‘ 2016 – Poprad greenlab.di.uminho.pt * HASLab/INESC ¶ Universidade do Minho, Portugal ‡ RELEASE, Universidade da Beira Interior, Portugal § Universidade Nova de Lisboa, Portugal {mcouto, ruipereira, jas}@di.uminho.pt, jacome@fct.unl.pt, jpf@di.ubi.pt

Editor's Notes

  1. Importante dizer que: A ferramenta Power Tutor não é nosso, e funciona como uma aplicação que monitoriza consumos de várias aplicações Os estados dos componentes de hardware são muitas vezes associados a uma aplicação (exemplo: sabendo que o CPU está a 80%, é possível saber quanta dessa percentagem se deve à aplicação X ou Y)
  2. Tests with consumptions above average (in the analyzed program) are considered excessive, and below average not excessive. Using a series of thresholds we identify the methods accordingly. For example red methods are those who appear in over 60% of excessive test cases, green in 0%, and yellow otherwise.