为Android应用程序进行代码嗅觉分析,并为减少电池消耗提供解决方案
Aakanshi Gupta1, Bharti Suri2, Deepanshu Sharma3
1Department of Computer Science and Engineering, Amity University Uttar Pradesh, Noida, India.
Scientific reports
|July 31, 2024
概括
重构Android代码闻起来像没有低内存解析器,慢循环显著降低了电池消耗. 这项研究为开发人员提供了一种提高效率并为绿色移动能源做出贡献的方法.
科学领域:
- 软件工程 软件工程 软件工程
- 移动计算 移动计算
- 能源效率 能源效率 能源效率
背景情况:
- 对于Android设备来说,电池消耗非常重要,影响性能和可维护性.
- 特定于Android的代码气味可能会对电池寿命产生负面影响.
- 优化代码对于可持续的移动技术至关重要.
研究的目的:
- 分析Android代码的气味及其对电池消耗的影响.
- 开发一个数学模型,将静态代码指标,代码气味和电池使用量联系起来.
- 为开发人员提供指导方针,以尽量减少Android应用程序中的电池耗电.
主要方法:
- 研究了三个代码气味:没有低内存解析器 (NLMR),慢循环 (SL) 和未关闭的可关闭.
- 分析了来自16个Android应用程序的4165个类.
- 采用基于规则的分类和多线性回归 (MLR) 建模.
主要成果:
- 重构识别的代码气味可以明显降低电池消耗.
- 重构方法的累计准确率达到了87.47%.
- 在MLR模型中,NLMR的R平方值为0.76,SL的R平方值为0.668.
结论:
- 重构特定的Android代码气味有效地减少了电池使用量.
- 该研究为开发人员提供了一个框架,以提高Android代码的效率.
- 研究结果支持开发节能移动应用程序,并为绿色能源倡议做出贡献.
更多相关视频
10:36Author Spotlight: Optimization of Airflow Velocities in Battery Cooling Systems for Enhanced Thermal Performance and Reduced Energy Consumption
Published on: November 3, 2023
1.5K
06:26Author Spotlight: Exploring Breathing Techniques and Digital Solutions for Enhancing Running Performance
Published on: September 27, 2024
438
相关概念视频
Batteries and Fuel Cells
27.2K
A battery is a galvanic cell that is used as a source of electrical power for specific applications. Modern batteries exist in a multitude of forms to accommodate various applications, from tiny button batteries such as those that power wristwatches to the very large batteries used to supply backup energy to municipal power grids. Some batteries are designed for single-use applications and cannot be recharged (primary cells), while others are based on conveniently reversible cell reactions that...
27.2K
Kirchoff's Rules: Application
1.5K
Kirchhoff's rules quantify the current flowing through a circuit and the voltage variations around the loop in a circuit. Applying Kirchhoff's rules generates a set of linear equations that allow us to find the unknown values in circuits. These may be currents, voltages, or resistances.
When applying Kirchhoff's first rule, the junction rule, label the current in each branch and decide its direction. If the chosen direction is wrong, it will have the correct magnitude, although the...
When applying Kirchhoff's first rule, the junction rule, label the current in each branch and decide its direction. If the chosen direction is wrong, it will have the correct magnitude, although the...
1.5K
DC Battery
770
A conductor needs to be a component of a path that creates a closed loop or full circuit to have a continuous current flowing through it. A current starts to flow if an electric field is created inside an isolated conductor that is not part of a full circuit. The conductor quickly develops a net positive charge at one end and a net negative charge at the other. These charges generate an electric field opposite the direction of the applied electric field, which reduces the current. Eventually,...
770
Balancing Redox Equations
51.9K
Electrochemistry is the science involved in the interconversion of electrical and chemical reactions. Such reactions are called reduction-oxidation, or redox reactions. These important reactions are defined by changes in oxidation states for one or more reactant elements and include a subset of reactions involving the transfer of electrons between reactant species. Electrochemistry as a field has evolved to yield sufficient insights on the fundamental principles of redox chemistry and multiple...
51.9K
Block Diagram Reduction
190
The process of deriving the transfer function of a control system often involves reducing its block diagram to a single block. This simplification can be achieved through a series of strategic operations, including relocating branch points and comparators. These operations preserve the overall function of the system while allowing for easier manipulation and combination of blocks.
The first step in this process is the identification and relocation of a branch point. A branch point, where a...
The first step in this process is the identification and relocation of a branch point. A branch point, where a...
190
Electrical Energy
1.2K
Using electric appliances for a longer period of time consumes more electrical energy and results in a higher electric bill. The energy produced by the transfer of electrons from one point to another is known as electrical energy. If power is delivered at a constant rate, the electrical energy can be defined as the product of power used by the device for a period of time. The energy unit on electric bills is the kilowatt-hour, where one kilowatt-hour is equivalent to 3.6 × 106 joules.
1.2K
