Skip to main content
QUICK REVIEW

[Paper Review] An Energy-Aware Programming Approach for Mobile Application Development Guided by a Fine-Grained Energy Model

Xueliang Li, John P. Gallagher|arXiv (Cornell University)|May 17, 2016
Green IT and SustainabilityEngineering36 references9 citations
TL;DR

This paper proposes an energy-aware programming approach for Android apps using a fine-grained, operation-based source-level energy model to guide developers in optimizing code for energy efficiency. By identifying costly operations such as method invocations and refactoring them, the approach reduces energy consumption by 6.4% to 50.2% in real-world scenarios without compromising code correctness.

ABSTRACT

Energy efficiency has a significant influence on user experience of battery-driven devices such as smartphones and tablets. It is shown that software optimization plays an important role in reducing energy consumption of system. However, in mobile devices, the conventional nature of compiler considers not only energy-efficiency but also limited memory usage and real-time response to user inputs, which largely limits the compiler's positive impact on energy-saving. As a result, the code optimization relies more on developers. In this paper, we propose an energy-aware programming approach, which is guided by an operation-based source-code-level energy model. And this approach is placed at the end of software engineering life cycle to avoid distracting developers from guaranteeing the correctness of system. The experimental result shows that our approach is able to save from 6.4% to 50.2% of the overall energy consumption depending on different scenarios.

Motivation & Objective

  • To address the lack of developer awareness in energy-efficient mobile app development, especially in high-level languages like Java.
  • To bridge the gap between high-level source code and low-level energy consumption by creating a precise, operation-level energy model.
  • To provide developers with actionable insights for energy-aware refactoring during the implementation phase.
  • To evaluate the effectiveness of this approach in real-world mobile applications, particularly in performance-critical scenarios like game engines.
  • To demonstrate that energy optimization can also improve application performance, enhancing user experience.

Proposed method

  • The authors construct an operation-based energy model by analyzing energy consumption across a range of well-designed execution cases on an Android development board with dual ARM quad-core CPUs.
  • Energy accounting is performed at the operation and block level, attributing energy costs to specific code constructs such as method calls, loops, and conditionals.
  • The model identifies high-cost operations—such as method invocation and array access—based on empirical measurements of CPU state residency, cache misses, and battery drain.
  • The approach guides refactoring by targeting the most energy-intensive code blocks, replacing or restructuring expensive operations while preserving logical correctness.
  • The method is applied in a case study using a real-world game engine to evaluate energy savings and performance impact.
  • The model is validated through controlled experiments measuring energy reduction across diverse application scenarios.

Experimental results

Research questions

  • RQ1How can energy consumption in high-level source code, such as Java, be modeled with fine-grained precision to guide optimization?
  • RQ2Which specific code operations contribute most significantly to energy consumption in mobile applications?
  • RQ3To what extent can targeted refactoring guided by such a model reduce overall energy usage in real-world mobile apps?
  • RQ4Can energy-aware refactoring also improve application performance, thereby enhancing user experience?
  • RQ5How does this approach compare to compiler-based optimizations in terms of energy savings and practical feasibility?

Key findings

  • The proposed energy-aware programming approach achieved energy savings ranging from 6.4% to 50.2% across different application scenarios in the case study.
  • Method invocation was identified as one of the most energy-intensive operations, suggesting that inlining could yield significant savings at the cost of code structure.
  • The operation-based model provides actionable, fine-grained insights that are more useful than coarse-grained source-line or method-level profiling for guiding refactoring.
  • Energy optimization via this approach also led to improved application performance, indicating a dual benefit for user experience.
  • The model is precise enough to guide effective refactoring despite being an approximation, as it maps energy costs back to source-level constructs.
  • The approach is practical and applicable at the end of the software implementation phase, without disrupting functional correctness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.