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).
Integrate lag analysis function
Android
Complete the following steps to integrate stuck analysis function to Android client:
Integrate Mobile Analysis Service. For more information, see Integrate MAS to Android.
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:
Integrate Mobile Analysis Service. For more information, see Integrate MAS to iOS.
Enable lag monitoring. Based on the SDK version, see Add performance log.
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:
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.