计算机与现代化 ›› 2022, Vol. 0 ›› Issue (07): 103-109.

• 人工智能 • 上一篇    下一篇

Android应用性能测试与监控技术

  

  1. (华南理工大学计算机科学与工程学院,广东广州510006)
  • 出版日期:2022-07-25 发布日期:2022-07-25
  • 作者简介:冼进(1970—),男,广东遂溪人,高级实验师,硕士,研究方向:大数据,区块链,软、硬件系统开发,E-mail: xi88@scut.edu.cn。 Android应用性能测试与监控技术
  • 基金资助:
    教育部产学合作协同育人项目(202101138020)

Android Application Performance Testing and Monitoring Technology

  1. (School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, China)
  • Online:2022-07-25 Published:2022-07-25

摘要: 根据移动应用实际使用需求,设计并实现Android应用性能测试与监控方案。该方案使用简单,不需要代码注入,它有SDK基础模块,能完成配置文件解析、网络识别、定位和数据传输功能,监测应用的CPU和内存资源消耗;收集用户数据并发送到Web服务端进行分析,从而获得用户成分和存留率;通过对Activity和Fragment监测,获得费时、高频、长时间使用的页面信息,以及页面之间的跳转关系;通过数据访问性能监测,发现性能瓶颈和缺陷。最后通过一个移动购物应用进行案例实验分析,验证所本文方案的有效性。通过应用性能测试与监控相结合,开发者能及时发现程序应用问题,并持续跟踪完善软件服务。

关键词: 用户体验, 性能测试, 监控, 无侵入

Abstract: According to the actual demand of mobile application, the performance test and monitoring scheme of Android application is designed and implemented. The solution is simple to use and does not require code injection. It has SDK basic modules, which can complete configuration file parsing, network identification, location and data transmission, and monitor application CPU and memory resource consumption. User data is collected and sent to the Web server for analysis to obtain user composition and retention; By monitoring Activity and Fragment, the time-consuming, high-frequency and long-used page information are obtained, as well as the jump relationship between pages; By monitoring data access performance, performance bottlenecks and defects are found. Finally, a mobile shopping application is used to verify the effectiveness of the scheme. Through the combination of application performance testing and monitoring, developers can discover application problems in time and continuously track and improve software services.

Key words: user experience, performance testing, monitoring, no-invasion