一句话:提出即插即用、设备无关的模型化 Android 能量分析器,可细粒度测量能耗与各组件耗能。
Android 应用能耗分析通常依赖特定设备或粗粒度测量,难以在自动化基准测试中通用。本文提出 E-MANAFA,一个即插即用、设备无关且基于模型的能量分析器,可在 Android 设备上获得细粒度能耗数据。该工具不仅能计算时间区间内的总能耗与运行时等性能指标,还可估算 CPU、Wi-Fi、屏幕等各组件的能耗。文章介绍了框架组成与工作流,并通过在 PyAnaDroid 应用基准测试流水线中测量其所用插桩技术的开销,展示 E-MANAFA 的实用性;PyAnaDroid 已支持 E-MANAFA 以在自动执行过程中监控功耗。
This article introduces the E-MANAFA energy profiler, a plug-and-play, device-independent, model-based profiler capable of obtaining fine-grained energy measurements on Android devices. Besides having the capability to calculate performance metrics such as the energy consumed and runtime during a time interval, E-MANAFA also allows to estimate the energy consumed by each device component (e.g. CPU, WI-FI, screen). In this article, we present the main elements that compose this framework, as well as its workflow. In order to present the power of this tool, we demonstrate how the tool can measure the overhead of the instrumentation technique used in the PyAnaDroid application benchmarking pipeline, which already supports E-MANAFA to monitor power consumption in its Android application automatic execution process. Video demo: shorturl.at/hmyz5