paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Detecting and diagnosing energy issues for mobile applications

移动应用的能耗问题检测与诊断
ISSTA Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis2020匹配度 1/10 · 论文研究移动应用能耗问题的检测与诊断,属于软件测试与软件工程领域,与用户关注的静态分析、形式化验证、浮点/贝叶斯程序分析以及LLM/Agent在PL中的应用等方向均无直接关联。引用 20 inbox
Xueliang Li, Yuming Yang, Yepang Liu, John P. Gallagher, Kaishun Wu
crossref: 2026-09-12

AI 速览

一句话:提出一种结合输入序列设计与运行时上下文的测试框架,利用机器学习聚类工作负载,有效检测并诊断移动应用的能耗问题。

移动应用能耗问题普遍,约三分之一的应用存在快速耗电问题。对27个公开问题跟踪的应用的实证研究发现,根因主要包括不必要的工作负载与过于频繁的操作,且25.0%的问题仅在弱网等特定上下文中显现,现有技术难以检测。本文提出一种新型测试框架,结合精心设计的输入序列与运行时上下文来检测能耗问题。为识别上述根因,采用机器学习算法聚类工作负载并评估其必要性;针对特定上下文隐藏的问题,设置多种执行上下文;并设计预生成潜在过度耗能输入序列、动态调整测试等技术以提高检测效果。大规模评估表明,实验中检测到的91.6%问题此前不为开发者所知,这些问题平均使应用能耗翻倍,且误报率低。

问题
移动应用能耗问题普遍,约三分之一的应用存在快速耗电问题。实证研究发现根因包括不必要的工作负载与过于频繁的操作,且25.0%的问题仅在弱网等特定上下文中显现,现有技术难以检测。
方法
提出一种新型测试框架,结合精心设计的输入序列与运行时上下文来检测能耗问题。为识别根因,采用机器学习算法聚类工作负载并评估其必要性;针对特定上下文隐藏的问题,设置多种执行上下文;并设计预生成潜在过度耗能输入序列、动态调整测试等技术。
评估
大规模评估显示,检测到的91.6%问题此前不为开发者所知,平均使应用能耗翻倍,误报率低。
原文摘要(Abstract)

Energy efficiency is an important criterion to judge the quality of mobile apps, but one third of our randomly sampled apps suffer from energy issues that can quickly drain battery power. To understand these issues, we conducted an empirical study on 27 well-maintained apps such as Chrome and Firefox, whose issue tracking systems are publicly accessible. Our study revealed that the main root causes of energy issues include unnecessary workload and excessively frequent operations. Surprisingly, these issues are beyond the application of present technology on energy issue detection. We also found that 25.0% of energy issues can only manifest themselves under specific contexts such as poor network performance, but such contexts are again neglected by present technology. In this paper, we propose a novel testing framework for detecting energy issues in real-world mobile apps. Our framework examines apps with well-designed input sequences and runtime contexts. To identify the root causes mentioned above, we employed a machine learning algorithm to cluster the workloads and further evaluate their necessity. For the issues concealed by the specific contexts, we carefully set up several execution contexts to catch them. More importantly, we designed leading edge technology, e.g. pre-designing input sequences with potential energy overuse and tuning tests on-the-fly, to achieve high efficacy in detecting energy issues. A large-scale evaluation shows that 91.6% issues detected in our experiments were previously unknown to developers. On average, these issues double the energy costs of the apps. Our testing technique achieves a low number of false positives.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6044,
  title = {Detecting and diagnosing energy issues for mobile applications},
  author = {Xueliang Li and Yuming Yang and Yepang Liu and John P. Gallagher and Kaishun Wu},
  booktitle = {ISSTA},
  year = {2020},
  doi = {10.1145/3395363.3397350}
}