arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1512.07950cs.SE
收藏

PersisDroid:通过剖析异步执行进行Android性能诊断

PersisDroid: Android Performance Diagnosis via Anatomizing Asynchronous Executions

Yu Kang, Yangfan Zhou, Hui Xu, Michael R. Lyu

摘要:

Android应用程序(apps)近年来急剧增长。应用程序通常以用户界面(UI)为中心。快速的UI响应是应用程序开发人员的关键考虑因素。然而,我们仍然缺乏一个方便的工具来分析应用程序的性能,以诊断性能问题。本文介绍了PersisDroid,一个专门为这项任务设计的工具。PersisDroid的关键概念是UI触发的异步执行也会影响UI性能,因此应该正确捕获其性能以便于性能诊断。然而,Android允许以多种方式启动异步执行,这对分析此类执行构成了巨大的挑战。本文认为,它们可以分为六类。因此,可以根据每个类别的具体情况,使用专为Android量身定制的动态检测方法对它们进行跟踪和分析。PersisDroid可以在任务粒度上正确地分析异步执行,这使其具有低开销和高兼容性的优点。最重要的是,分析数据可以极大地帮助开发人员检测和定位性能异常。我们编码并开源发布PersisDroid。应用该工具对20个开源应用进行了性能诊断,发现其中11个存在潜在的性能问题,说明该工具在Android应用性能诊断中的有效性。

英文摘要:

Android applications (apps) grow dramatically in recent years. Apps are user interface (UI) centric typically. Rapid UI responsiveness is key consideration to app developers. However, we still lack a handy tool for profiling app performance so as to diagnose performance problems. This paper presents PersisDroid, a tool specifically designed for this task. The key notion of PersisDroid is that the UI-triggered asynchronous executions also contribute to the UI performance, and hence its performance should be properly captured to facilitate performance diagnosis. However, Android allows tremendous ways to start the asynchronous executions, posing a great challenge to profiling such execution. This paper finds that they can be grouped into six categories. As a result, they can be tracked and profiled according to the specifics of each category with a dynamic instrumentation approach carefully tailored for Android. PersisDroid can then properly profile the asynchronous executions in task granularity, which equips it with low-overhead and high compatibility merits. Most importantly, the profiling data can greatly help the developers in detecting and locating performance anomalies. We code and open-source release PersisDroid. The tool is applied in diagnosing 20 open-source apps, and we find 11 of them contain potential performance problems, which shows its effectiveness in performance diagnosis for Android apps.

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

↑