摘要
从社交到电商、旅游、医疗、教育、餐饮和出行,移动应用逐渐成为人们日常生活的一部分。移动应用开发商之间的竞争越来越激烈,移动应用想要提升用户体验和增加用户数,从人们真实使用的手机上采集性能数据、崩溃日志至关重要。针对通过修改源代码埋桩方式采集移动应用性能数据有诸多缺陷,提出使用面向切面编程对Android源代码进行预编译处理,能够在不需要手工修改代码的前提下自动插入性能数据采集探针代码。该方法已经在多个项目中实际使用,使用该方法处理过的Android应用能够远程上报符合要求的应用性能和用户使用习惯数据。证明该方法在实际使用中具有可行性,为Android应用性能数据采集提供了新的思路。
Mobile applications have gradually become part of people's daily life in social contact, e-commerce, tourism, health care, education, catering and trip. Due to the increasing fierce competition between application developers who want to improve user experience and increase the number of users, how to collect performance data and crash logs from the real mobile phone user is essential. In order to collect mobile application performance data has many defects by modifying the source code embedded pile, this paper proposes a method of pre-compiling the Android source code with aspect-oriented programming. It can automatically insert the performance data acquisition probe code without modifying the code manually. The method is used in many projects, and the Android application processed by this method can report the application performance and the data of user's habits, which proves the feasibility of this method in practical application. The method for Android's applied performance data and data collection provides a new way of thinking.
出处
《计算机应用与软件》
2017年第7期192-197,共6页
Computer Applications and Software