期刊文献+

Android应用异步编程模型性能分析 被引量:4

Performance Analysis of Asynchronous Programming Model for Android Application
下载PDF
导出
摘要 为保障Android应用程序拥有良好的响应性能,开发人员都会采用异步编程的方式,即将耗时任务放在子线程中去执行。这种方式虽然明显提高了应用程序的性能,但是一旦出现性能问题是很难定位原因的。因此为解决开发人员多采用异步编程方式来提高用户体验而引发的Android系统响应性能低下,程序执行过程复杂性增加的问题,提出一种基于异步跟踪实现Android应用响应性能检测与分析的方法。通过对Android系统的Framework层中关键代码进行插桩,完成对程序异步线程执行过程的跟踪,并构建出跨越异步调用边界的关键路径。最后,通过对关键路径的分析得出影响响应性能的主要原因,并反馈给开发者。通过一些特定的测试用例实验和运用该方法解决OPENTHOS系统上存在的实际问题,结果都表明达到了预期目标。 To make sure that Android applications have a good responding performance,developers can use asynchronous programming,i.e.time-consuming tasks are placed in the sub-thread.This approach significantly improves the performance of the application,but it is very difficult to locate the reason when something goes wrong.This paper presents a method based on asynchronous tracking to realize the performance detection and analysis of Android application response in order to solve the problem that the Android system response performance is low and the complexity of the program execution process is increased which is caused by asynchronous programming to improve the user experience.Through the key code in the Android system's framework layer,this paper tracks the asynchronous thread execution process and constructs the critical path across the asynchronous call boundary.Finally,the main reason that affects the response performance is obtained by key path analysis and fed back to the developer.Through a number of specific test cases and the use of this method on solving the problems on OPENTHOS,results show that the desired target is achieved.
作者 薛海龙 陈渝 雷蕾 王丹 XUE Hailong;CHEN Yu;LEI Lei;WANG Dan(College of Computer Science and Technology,Beijing University of Technology,Beijing 100124,China;College of Computer Science and Technology,Tsinghua University,Beijing 100084,China)
出处 《计算机科学与探索》 CSCD 北大核心 2018年第10期1604-1613,共10页 Journal of Frontiers of Computer Science and Technology
基金 北京市自然科学基金No.4173072~~
关键词 ANDROID 性能分析 Framework LOG 关键路径 Android performance analysis Framework Log critical path
  • 相关文献

参考文献1

二级参考文献2

  • 1谷歌公司.Android4.0的兼容性定义[EB/OL].(2012-01-25)[2012-10-12].htlp://.source.android.corn/corn-patibility/4.O/tmdroid-4.0-cdd.pdf.
  • 2符歌公司.Android4.0源代码[CP/OL].(2012-02-04)[2012-11-19].http://code.google.eom/o/android.

共引文献6

同被引文献28

引证文献4

二级引证文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部