Application launch speed analysis

更新时间:
复制 MD 格式

mPaaS helps you build highly stable and high-performance apps. This tutorial shows you how to analyze your application's launch speed.

Android development

1. Add the mobile analytics component

Mobile Analytics supports three connection types: native AAR, mPaaS Inside, and component-based (Portal & Bundle). However, only applications built on the mPaaS frame can use the encapsulated interfaces in the SDK to measure application launch speed.

To add the component, see the Android integration document. This includes completing general steps, adding the SDK, and configuring the project. When you add the SDK, select the latest version.

2. Record the launch speed log

import com.mpaas.mas.adapter.api.MPLogger;

MPLogger.reportLaunchTime(Context context);

For more information, see Performance logs > Launch speed.

iOS development

1. Add the mobile analytics component

To add the mobile analytics component, see the iOS integration document.

2. Record the launch speed log

For details about the API, see Performance logs.

View the analysis report

In the console, go to the Mobile Analytics > Basic Analysis > Behavior Analysis page. Select a date to view the average application launch speed report.

  • First launch: The first time the application starts after its initial installation.

  • Subsequent launch: Any start of the application after the initial installation.

Launch speed is measured for cold starts, and the analysis is performed in Near Real-Time. The report is displayed after the client successfully connects and sends logs to the log server.