薛海龙1,2+,陈渝2,雷蕾1,王丹1
2.清华大学计算机学院,北京100084
Performance Analysis of Asynchronous Programming Model for Android Application XUE Hailong 1,2+,CHEN Yu 2,LEI Lei 1,WANG Dan 1cze
1.College of Computer Science and Technology,Beijing University of Technology,Beijing 100124,China
2.College of Computer Science and Technology,Tsinghua University,Beijing 100084,China
+Corresponding author:E-mail:847036983@qq
免疫组化定量分析XUE Hailong,CHEN Yu,LEI Lei,et al.Performance analysis of asynchronous programming model for Android application.Journal of Frontiers of Computer Science and Technology,2018,12(10):1604-1613.
美帝国的崩溃电子书
Abstract:To make sure that Android applications have a good responding performance,developers can use asyn-chronous ime-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.
Key words:Android;performance analysis;Framework;Log;critical path帕累托改进
*The Natural Science Foundation of Beijing under Grant No.4173072(北京市自然科学基金).
Received 2017-09,Accepted 2017-11.
CNKI 网络出版:2017-11-16,knski/kcms/detail/11.5602.TP.20171116.1500.008.html ISSN 1673-9418CODEN JKYTA8
Journal of Frontiers of Computer Science and Technology
1673-9418/2018/12(10)-1604-10虚拟主持人
doi:10.3778/j.issn.1673-9418.1710024E-mail:fcst@vip.163 Tel:+86-10-89056056