marco couto's msc thesis presentation
DESCRIPTION
Marco Couto's Msc Thesis Presentation: Monitoring Energy Consumption in Android ApplicationsTRANSCRIPT
![Page 1: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/1.jpg)
Monitoring Energy Consumption in Android Applications
Marco Couto
Departamento de Informática
Universidade do Minho
João Saraiva
Universidade do Minho
João Paulo Fernandes
Universidade da Beira Interior
Supervisors
Master Thesis Integrated in the GreenSSCM project
![Page 2: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/2.jpg)
Going Green : Motivation
“The global energy system is on an unsustainable path” [Forbes Magazine, 2012]
2
![Page 3: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/3.jpg)
Going Green : MotivationConcern 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!
3
“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
consumptioncomes from IT”
- [Mouftah andKantarci, 2013]
![Page 4: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/4.jpg)
Related WorkPower 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
![Page 5: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/5.jpg)
Green Software : Research Questions
1. Is it possible to associate energy consumption to different codesections?
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
![Page 6: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/6.jpg)
Our IdeaAssociate energy consumption to different execution scopes
Check if the energy consumption was excessive
Classify software code fragments (methods)
6
![Page 7: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/7.jpg)
The Tool : Green Droid
7
App’sSourceCode
App’sTests
Instrument
App’sSourceCode
I
App’sTests
I
BuildAPP
Tests
. Execution Trace
. Consumption
. Execution Time
For each testexecution…
Run Analyzer
Results Display Results
![Page 8: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/8.jpg)
Displaying theResultsApplication Under Test:
0xBenchmark
8
![Page 9: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/9.jpg)
Method ClassificationGreen◦ 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.
9
Base Of
Knowledge
[Consumptions
per Second]
Arithmetic Mean
![Page 10: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/10.jpg)
ResultsEXECUTION TIME TOTAL CONSUMPTION
10
CONSUMPTION PER SECOND
![Page 11: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/11.jpg)
ContributionsDetecting 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 codesections?
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
![Page 12: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/12.jpg)
Future WorkEvaluate 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
![Page 13: Marco Couto's Msc Thesis Presentation](https://reader033.vdocument.in/reader033/viewer/2022042816/559996261a28abe5278b46fd/html5/thumbnails/13.jpg)
Monitoring Energy Consumption in Android Applications
Marco Couto
Departamento de Informática
Universidade do Minho
João Saraiva
Universidade do Minho
João Paulo Fernandes
Universidade da Beira Interior
Supervisors
Master Thesis Integrated in the GreenSSCM project