Lag means that the main thread fails to complete a method for a certain period of time (2.25 seconds for Android and 2 seconds for iOS). When lag occurs, the client will upload lag information in real time. This information will be displayed on the console. The overall time delay is generally from a few seconds to a few minutes.
Before you can view the lag report, you must integrate and instrument the client software development kit (SDK). For more information, see Integrate an Android client and Integrate an iOS client.
The lag report lets you view the number of device stutters, the device stutter rate, the number of affected devices, and the details for each lag category.
To view the lag report, follow these steps:
Log on to the console, click Products and Services > Mobile PaaS, and select an application.
In the navigation pane on the left, click Mobile Analysis Service > Performance analysis > Lag report.
Select conditions such as platform, version, and time to filter the lag analytics data.
lag overview
This section displays lag data per minute and shows data change trends in a line chart.
Lag count: The total number of stutters on monitored devices. lag is monitored on a 10% sample of all devices.
lag count: The total number of stutters that occurred on devices with lag monitoring enabled. The sample rate for lag monitoring is 10%.
lag rate: The lag count divided by the total number of page views (PVs) on devices with lag monitoring enabled.
Affected devices: The number of unique users who experienced lag.
Detailed lag data
This section provides a report of lag data for the selected date. In this report, logs are categorized and counted based on the cause of the lag.
Lag count: Total number of lags of the same type (total number of lag logs).
Accounts: Total distinct user IDs (counted by
userIDfield in the logs) in the lags of the same type. If nouserIDfield is available in the logs, the value is 1 by default.Devices: Total distinct device IDs (counted by device ID in the logs) in the lags of the same type. If no device ID is available in the logs, the value is 1 by default.
Version: Version No. in the lag log file.
Details: Lag call stack in the log file.
Stack information is available in the detailed lag reports for Android devices but not for iOS devices.
lag category details
In the lag category list, click an entry in the Details column to view the fault details for that lag category. The details page includes fault group information and fault samples.
Fault group:
lag count: The total number of stutters in the category. This is equivalent to the number of lag logs.
Affected devices: The number of unique devices on which this category of lag occurred, deduplicated by device ID.
NoteIf the device ID is empty or "-", the device will not be counted.
Proportion of affected devices: The number of devices affected by this lag category divided by the total number of devices that experienced any lag.
Device models: The percentage of stutters for different device models, sorted in descending order of lag count.
Error sample: Shows the device details, log details and other information. You can switch the samples by clicking <and> button.
Device details: Shows the Device ID, Platform, User ID, Device model, and Operating system version.
Log details: Displays the lag log for the current sample and provides a Data Exporting option. For more information about log details, see lag instrumentation.