All Products
Search
Document Center

Lag analysis

Last Updated: Jun 23, 2021

Lag means that the main thread does not complete executing a method within the specified period of time (2.25 seconds for Android and 2 seconds for iOS).

View lag report

Log in to the console, choose Mobile Analysis Service > Performance analysis > Lag report. You can view lagging times, device lagging rate, affected devices, details of each lag type, and other information.

In the lag classification area, click the information in the Details column to view detailed lag information.

  • Device details:
    • Device ID: The format is IMSI|IMEI.
    • Platform: Consists of 3 fields, which are appId-Platform-workspaceId.
  • Log details: Log records are separated by comma and contain complete error stacks. For the specific meaning of each field, see Log model > Performance tracking > Lag tracking.

Lag analysis is in quasi real time. Namely, you can view the lag report immediately after a lag occurs on your app on a device matching the sampling rules and a lag log is reported. For more information about the sampling rules and the sampling ratio setting method, see the relevant documents when accessing clients.

Integrate lag analysis function

Android

Complete the following steps to integrate stuck analysis function to Android client:

  1. Access Mobile Analysis Service. For more information, see Access Mobile Analysis Service.
  2. Enable lag monitoring. Based on the SDK version, see Add performance log.

iOS

Complete the following steps to integrate stuck analysis function to iOS client:

  1. Access Mobile Analysis Service. For more information, see Access Mobile Analysis Service.
  2. Enable lag monitoring. Based on the SDK version, see Add performance log.