arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1908.08332cs.SEcs.PF
收藏

以能源为导向的变化是否会阻碍可维护性?

Do Energy-oriented Changes Hinder Maintainability?

Luis Cruz, Rui Abreu, John Grundy, Li Li, Xin Xia

摘要:

能源效率是移动应用程序的关键质量要求。然而,提高能源效率绝非易事,因为开发人员缺乏帮助这项活动的知识和工具。在本文中,我们研究的变化,以提高能源效率的Android应用程序的可维护性的影响。使用包含539个面向能效的提交的数据集,我们测量可维护性-由软件改进组基于Web的源代码分析服务Better Code Hub(BCH)计算-在能效相关代码更改之前和之后。结果表明,在一般情况下,提高能源效率来显着降低可维护性。这在代码更改中尤其明显,以适应省电模式和Wakelock附加能量模式。此外,我们进行手动分析,以评估如何真正的例子,能源为导向的变化影响可维护性。我们的研究结果有助于移动应用程序开发人员1)在提高应用程序的能效时避免常见的可维护性问题; 2)采用开发流程来构建可维护性和节能代码。我们还通过识别移动应用程序开发中仍然需要解决的挑战来支持研究人员。

英文摘要:

Energy efficiency is a crucial quality requirement for mobile applications. However, improving energy efficiency is far from trivial as developers lack the knowledge and tools to aid in this activity. In this paper we study the impact of changes to improve energy efficiency on the maintainability of Android applications. Using a dataset containing 539 energy efficiency-oriented commits, we measure maintainability -- as computed by the Software Improvement Group's web-based source code analysis service Better Code Hub (BCH) -- before and after energy efficiency-related code changes. Results show that in general improving energy efficiency comes with a significant decrease in maintainability. This is particularly evident in code changes to accommodate the Power Save Mode and Wakelock Addition energy patterns. In addition, we perform manual analysis to assess how real examples of energy-oriented changes affect maintainability. Our results help mobile app developers to 1) avoid common maintainability issues when improving the energy efficiency of their apps; and 2) adopt development processes to build maintainable and energy-efficient code. We also support researchers by identifying challenges in mobile app development that still need to be addressed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑