Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2483760.2483780acmconferencesArticle/Chapter ViewAbstractPublication PagesisstaConference Proceedingsconference-collections
research-article

Calculating source line level energy information for Android applications

Published: 15 July 2013 Publication History

Abstract

The popularity of mobile apps continues to grow as developers take advantage of the sensors and data available on mobile devices. However, the increased functionality comes with a higher energy cost, which can cause a problem for users on battery constrained mobile devices. To improve the energy consumption of mobile apps, developers need detailed information about the energy consumption of their applications. Existing techniques have drawbacks that limit their usefulness or provide information at too high of a level of granularity, such as components or methods. Our approach is able to calculate source line level energy consumption information. It does this by combining hardware-based power measurements with program analysis and statistical modeling. Our empirical evaluation of the approach shows that it is fast and accurate.

References

[1]
Dex2jar. http://code.google.com/p/dex2jar/.
[2]
Monsoon. http://www.msoon.com/ LabEquipment/PowerMonitor/.
[3]
The r project for statistical computing. http://www.r-project.org/.
[4]
Apache. Bcel library. http://bcel.sourceforge.net/.
[5]
T. Ball and J. Larus. Efficient Path Profiling. In MICRO 29, pages 46–57. IEEE Computer Society, 1996.
[6]
F. Bellosa. The Benefits of Event-Driven Energy Accounting in Power-Sensitive Systems. In the 9th workshop on ACM SIGOPS European Workshop, pages 37–42. ACM, 2000.
[7]
D. Brooks, V. Tiwari, and M. Martonosi. Wattch: a framework for architectural-level power analysis and optimizations. In ACM SIGARCH Computer Architecture News, volume 28, pages 83–94. ACM, 2000.
[8]
M. Dong and L. Zhong. Sesame: Self-Constructive System Energy Modeling for Battery-Powered Mobile Systems. In Proc. of MobiSys, pages 335–348, 2011.
[9]
S. G. Eick, J. L. Steffen, and E. E. Sumner, Jr. Seesoft-a tool for visualizing line oriented software statistics. IEEE Trans. Softw. Eng., 18(11):957–968, Nov. 1992.
[10]
K. Farkas, J. Flinn, G. Back, D. Grunwald, and J. Anderson. Quantifying the Energy Consumption of a Pocket Computer and a Java Virtual Machine. ACM SIGMETRICS Performance Evaluation Review, 28(1):252–263, 2000.
[11]
J. Flinn and M. Satyanarayanan. PowerScope: A Tool for Profiling the Energy Usage of Mobile Applications. In Second IEEE Workshop on Mobile Computing Systems and Applications, pages 2–10. IEEE, 1999.
[12]
S. Hao, D. Li, W. G. Halfond, and R. Govindan. Estimating mobile application energy consumption using program analysis. In Proc. of 35th International Conference on Software Engineering, 2013.
[13]
P. Huber. Robust statistics. 1981.
[14]
Intel. Atom N550 Datasheet. http://www.intel.com/content/dam/www/ public/us/en/documents/datasheets/ atom-n400-vol-1-datasheet-.pdf.
[15]
Intel. X18-M/25-M SATA SSD Datasheet. http://download.intel.com/design/flash/ nand/mainstream/ mainstream-sata-ssd-datasheet.pdf.
[16]
X. Jiang, P. Dutta, D. Culler, and I. Stoica. Micro power meter for energy monitoring of wireless sensor networks at scale. In Information Processing in Sensor Networks, 2007. IPSN 2007. 6th International Symposium on, pages 186–195. IEEE, 2007.
[17]
A. Kansal, F. Zhao, J. Liu, N. Kothari, and A. Bhattacharya. Virtual Machine Power Metering and Provisioning. In Proceedings of the 1st ACM symposium on Cloud computing, pages 39–50. ACM, 2010.
[18]
T. Li and L. John. Run-time Modeling and Estimation of Operating System Power Consumption. ACM SIGMETRICS Performance Evaluation Review, 31(1):160–171, 2003.
[19]
H. Mehta, R. Owens, and M. Irwin. INSTRUCTION LEVEL POWER PROFILING. In Acoustics, Speech, and Signal Processing, 1996. ICASSP-96. Conference Proceedings., 1996 IEEE International Conference on, volume 6, pages 3326–3329. IEEE, 1996.
[20]
Micron. DDR3 SDRAM SODIMM Datasheet. http: //download.micron.com/pdf/datasheets/ modules/ddr3/jsf16c256x64h.pdf.
[21]
R. Mittal, A. Kansal, and R. Chandra. Empowering developers to estimate app energy consumption. In Proc. of MobiCom, 2012.
[22]
T. Mudge, T. Austin, and D. Grunwald. The reference manual for the sim-panalyzer version 2.0 {z}. http://www.eecs.umich.edu/~panalyzer.
[23]
A. Pathak, Y. Hu, M. Zhang, P. Bahl, and Y. Wang. Fine-Grained Power Modeling for Smartphones Using System Call Tracing. In Proc. of EuroSys, pages 153–168. ACM, 2011.
[24]
A. Pathak, Y. C. Hu, M. Zhang, P. Bahl, and Y.-M. Wang. Where is the energy spent inside my app? Fine Grained Energy Accounting on Smartphones with Eprof. In Proc. of EuroSys, 2012.
[25]
P. Peterson, D. Singh, W. Kaiser, and P. Reiher. Investigating energy and security trade-offs in the classroom with the atom leap testbed. In 4th Workshop on Cyber Security Experimentation and Test (CSET), pages 11–11. USENIX Association, 2011.
[26]
C. Sahin, F. Cayci, I. L. M. Gutierrez, J. Clause, F. Kiamilev, L. Pollock, and K. Winbladh. Initial explorations on design pattern energy usage. In First International Workshop on Green and Sustainable Software (GREENS), pages 55–61, 2012.
[27]
C. Seo, S. Malek, and N. Medvidovic. An Energy Consumption Framework for Distributed Java-Based Systems. In Proc. of 22nd IEEE/ACM International Conference on Automated Software Engineering, pages 421–424. ACM, 2007.
[28]
C. Seo, S. Malek, and N. Medvidovic. Component-Level Energy Consumption Estimation for Distributed Java-Based Software Systems. In Proc. of 11th International Symposium on Component-Based Software Engineering, pages 97–113. Springer, 2008.
[29]
C. Seo, S. Malek, and N. Medvidovic. Estimating the Energy Consumption in Pervasive Java-Based Systems. In Sixth Annual IEEE International Conference on Pervasive Computing and Communications, pages 243–247. IEEE, 2008.
[30]
A. Sinha and A. Chandrakasan. Jouletrack-A Web Based Tool for Software Energy Profiling. In Design Automation Conference, 2001. Proceedings, pages 220–225. IEEE, 2001.
[31]
S. Steinke, M. Knauer, L. Wehmeyer, and P. Marwedel. An Accurate and Fine Grain Instruction-Level Energy Model Supporting Software Optimizations. In Proc. of PATMOS. Citeseer, 2001.
[32]
J. Stoess, C. Lang, and F. Bellosa. Energy Management for Hypervisor-Based Virtual Machines. In 2007 USENIX Annual Technical Conference on Proceedings of the USENIX Annual Technical Conference, page 1. USENIX Association, 2007.
[33]
T. Tan, A. Raghunathan, and N. Jha. Energy Macromodeling of Embedded Operating Systems. ACM Transactions on Embedded Computing Systems (TECS), 4(1):231–254, 2005.
[34]
T. Tan, A. Raghunathan, G. Lakshminarayana, and N. Jha. High-level Software Energy Macro-modeling. In Proc. of Design Automation Conference (DAC), pages 605–610. IEEE, 2001.
[35]
V. Tiwari, S. Malik, and A. Wolfe. Power Analysis of Embedded Software: A First Step Towards Software Power Minimization. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2(4):437–445, 1994.
[36]
V. Tiwari, S. Malik, A. Wolfe, and M. Tien-Chien Lee. Instruction Level Power Analysis and Optimization of Software. The Journal of VLSI Signal Processing, 13(2):223–238, 1996.
[37]
J. Turkey and A. Beaton. The fitting of power series, meaning polynomials, illustrated on band-spectroscopic data. Technometrics, 16:189–192, 1974.
[38]
N. Vijaykrishnan, M. Kandemir, S. Kim, S. Tomar, A. Sivasubramaniam, and M. Irwin. Energy Behavior of Java Applications from the Memory Perspective. In Proceedings of the 2001 Symposium on Java TM Virtual Machine Research and Technology Symposium-Volume 1, pages 23–23. USENIX Association, 2001.
[39]
L. Zhang, B. Tiwana, Z. Qian, Z. Wang, R. Dick, Z. Mao, and L. Yang. Accurate Online Power Estimation and Automatic Battery Behavior Based Power Model Generation for Smartphones. In Proc. of IEEE/ACM/IFIP International Conference on Hardware/Software Codesign and System Synthesis, pages 105–114. ACM, 2010.

Cited By

View all
  • (2024)A Developer-Oriented Framework for Assessing Power Consumption in Mobile Applications: Android Energy Smells Case StudySensors10.3390/s2419646924:19(6469)Online publication date: 7-Oct-2024
  • (2024)A Survey on Automatic Source Code Transformation for Green Software GenerationEncyclopedia of Sustainable Technologies10.1016/B978-0-323-90386-8.00122-4(765-779)Online publication date: 2024
  • (2023)Combatting Energy Issues for Mobile ApplicationsACM Transactions on Software Engineering and Methodology10.1145/352785132:1(1-44)Online publication date: 13-Feb-2023
  • Show More Cited By

Index Terms

  1. Calculating source line level energy information for Android applications

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    ISSTA 2013: Proceedings of the 2013 International Symposium on Software Testing and Analysis
    July 2013
    381 pages
    ISBN:9781450321594
    DOI:10.1145/2483760
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 15 July 2013

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Android app
    2. Energy measurement
    3. Source line level

    Qualifiers

    • Research-article

    Conference

    ISSTA '13
    Sponsor:

    Acceptance Rates

    Overall Acceptance Rate 58 of 213 submissions, 27%

    Upcoming Conference

    ISSTA '25

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)95
    • Downloads (Last 6 weeks)12
    Reflects downloads up to 09 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)A Developer-Oriented Framework for Assessing Power Consumption in Mobile Applications: Android Energy Smells Case StudySensors10.3390/s2419646924:19(6469)Online publication date: 7-Oct-2024
    • (2024)A Survey on Automatic Source Code Transformation for Green Software GenerationEncyclopedia of Sustainable Technologies10.1016/B978-0-323-90386-8.00122-4(765-779)Online publication date: 2024
    • (2023)Combatting Energy Issues for Mobile ApplicationsACM Transactions on Software Engineering and Methodology10.1145/352785132:1(1-44)Online publication date: 13-Feb-2023
    • (2023)JavaScript Dead Code Identification, Elimination, and Empirical AssessmentIEEE Transactions on Software Engineering10.1109/TSE.2023.326784849:7(3692-3714)Online publication date: Jul-2023
    • (2022)ECenchProceedings of the 19th International Conference on Mining Software Repositories10.1145/3524842.3528028(634-638)Online publication date: 23-May-2022
    • (2022)TEOProceedings of the 20th Annual International Conference on Mobile Systems, Applications and Services10.1145/3498361.3539774(302-315)Online publication date: 27-Jun-2022
    • (2022)Experience and Guidelines for Sorting Algorithm Choices and Their Energy EfficiencyCompanion of the 2022 ACM/SPEC International Conference on Performance Engineering10.1145/3491204.3527468(137-144)Online publication date: 14-Jul-2022
    • (2022)A Survey of Performance Optimization for Mobile ApplicationsIEEE Transactions on Software Engineering10.1109/TSE.2021.307119348:8(2879-2904)Online publication date: 1-Aug-2022
    • (2022)Detecting Connectivity Issues in Android Apps2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER)10.1109/SANER53432.2022.00087(697-708)Online publication date: Mar-2022
    • (2022)Smartphone App Usage Analysis: Datasets, Methods, and ApplicationsIEEE Communications Surveys & Tutorials10.1109/COMST.2022.316317624:2(937-966)Online publication date: Oct-2023
    • Show More Cited By

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media