arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.01754cs.SE
收藏

ARENA:一款用于测量和分析Android应用能效的工具

ARENA: A tool for measuring and analysing the energy efficiency of Android apps

University of Tartu(塔尔图大学)

Hina Anwar

AI总结:

针对硬件法测量Android应用能耗流程繁琐、缺少开源工具的问题,本文提出IDE插件ARENA,支持在开发环境中连接硬件设备完成能耗测量、分析与可视化,方便开发者对比不同应用或版本的能效。

摘要:

要构建高能效应用,需要在典型使用场景中估算并分析其能耗。Android应用的能耗可通过基于软件和基于硬件的方法进行估算。基于软件的方法虽然更易实现,但精度不及基于硬件的方法。\n通过基于硬件的方法测量Android应用能耗的流程通常包括:1)搭建测量环境;2)在移动设备上运行被测应用;3)通过硬件设备记录电流/电压数据以测量能耗;4)清洗并聚合数据,用于分析、生成报告和可视化。研究人员会为选定的软硬件组件编写专用脚本,以确保能耗测量的可靠性。能耗测量流程需要重复多次并对结果进行聚合,以消除噪声。这些步骤使得基于硬件的能耗测量过程耗时较长,且难以适配或复现。目前缺少可供开发者和研究人员通过硬件设备进行可靠能耗测量的开源工具。\n本文提出并演示了ARENA这一支持工具,它让开发者和研究人员无需离开IDE即可连接物理测量设备。开发者可在开发过程中使用ARENA比较不同应用或同一应用不同版本之间的能耗。ARENA通过在待开发应用上执行测试场景,计算Android智能手机上的能耗。此外,ARENA还支持数据聚合、统计分析、报告生成和可视化,让开发者和研究人员能够直接或通过可视化方式深入分析数据。我们将ARENA实现为IntelliJ和Android Studio的插件。

英文摘要:

To build energy-efficient apps, there is a need to estimate and analyze their energy consumption in typical usage scenarios. The energy consumption of Android apps could be estimated via software-based and hardware-based approaches. Software-based approaches, while easier to implement, are not as accurate as hardware-based approaches. The process of measuring the energy consumption of an Android app via a hardware-based approach typically involves 1) setting up a measurement environment, 2) executing the app under test on a mobile device, 3) recording current/voltage data via a hardware device to measure energy consumption, and 4) cleaning and aggregating data for analyses, reports, and visualizations. Specialized scripts are written for selected hardware and software components to ensure reliable energy measurements. The energy measurement process is repeated many times and aggregated to remove noise. These steps make the hardware-based energy measurement process time-consuming and not easy to adapt or reproduce. There is a lack of open-source tools available for developers and researchers to take reliable energy measurements via hardware devices. In this paper, we present and demonstrate ARENA, a support tool that enables developers and researchers to connect to a physical measurement device without leaving the comfort of their IDE. Developers could use ARENA during development to compare energy consumption between different apps or versions of the same app. ARENA calculates energy consumption on an Android smartphone by executing a test scenario on the app under development. Further, ARENA helps aggregate, statistically analyze, report, and visualize the data, allowing developers and researchers to dig into the data directly or visually. We implemented ARENA as an IntelliJ and Android Studio plugin.

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

↑