目录

O&M Analysis

DevEco Studio allows you to locate and analyze issues such as crashes, app freezes, OOM, and resource leaks that occur during runtime of released apps, and view the trends and distribution of anomalies such as crashes, jank, frame loss, and energy consumption.

Constraints

Currently, this feature is available only in the Chinese mainland.

Page Layout

Choose View > Tool Windows > Operation Analyzer to access Operation Analyzer.

Click Add account, log in with your HUAWEI ID, and grant the required permissions to view the anomaly status of apps under your account.

The Operation Analyzer UI is divided into two sections. The left side is the menu bar, and the right side is the data display area.

  1. Menu bar:
    1. Area 1: drop-down list from which you can select an app under the current account.
    2. Area 2: Reports area that displays data details for locating specific issues (Crash, OOM, APP Freeze, and Resource Leak).
    3. Area 3: Metrics area that shows the trend of abnormal data changes for Crash, Frame Loss, Launch, and Battery Usage.
  2. At the top of the data display area, the following filters are available:
    1. Time: exceptions and data from the current day to the last month.
    2. App version: version of the app that has abnormal data.
    3. System version: version of the system that has abnormal data.
    4. Device type (modal): device types supported by the current app.
    5. Phone modal (version): model of the phone that has abnormal data.
    6. Release type: release type of the current system.

Reports

[h2]Crash

Version 26.0.0 or later

Displays crash details. The Stack Info tab displays stack logs of the crash. You can restore the stack and jump to the corresponding code line for troubleshooting. The Context Data tab displays context data of crash events. The Symbol Table tab allows you to upload symbol tables to the cloud and associate local symbol tables.

Versions earlier than 26.0.0

Displays crash details. The Stack tab allows deobfuscating code and navigating to specific code lines to identify issues. The System load tab displays CPU and memory information at the time of the crash. The FaultLog tab displays crash logs. After symbol tables are uploaded, the stack trace in the log can be restored.

[h2]OOM

The OOM analysis capability is available since version 26.0.0, which displays detailed OOM information. The Stack Info tab displays OOM stack logs. You can restore the stack and jump to the corresponding code line for troubleshooting. The Context Data tab displays OOM context data. The Symbol Table tab allows you to upload symbol tables to the cloud and associate local symbol tables.

[h2]App Freeze

The App Freeze analysis capability is available since version 26.0.0, which displays detailed information of app freeze events. The Evidence Chain tab displays the evidence chain information of app freeze events, including the main thread stack traces at 3s and 6s. The Context Data tab displays context data of app freeze events. The Sampled Stack Logs tab displays the original and restored sampled stacks. The Symbol Table tab allows you to upload symbol tables to the cloud and associate local symbol tables.

The details page varies depending on the freeze type. The following uses THREAD_BLOCK_6S as an example.

[h2]Resource Leak

The Resource Leak analysis capability is available since version 26.0.0, which displays detailed information of resource leaks. The Evidence Chain tab displays the evidence chain information of resource leaks, including primary and secondary leaked heap blocks, with each block containing primary and secondary leak methods. The Context Data tab displays context data of resource leaks. The Symbol Table tab allows you to upload symbol tables to the cloud and associate local symbol tables.

The details page varies depending on the leak type. The following uses RSS_LEAK as an example.

Metrics

[h2]Crash

Displays the number of app crashes and crash rate.

Area 1: You can switch between the following tabs to analyze the number of crashes and crash rates from different dimensions: All, JsError (JavaScript crash), CppCrash (C++ crash), OOM (crashes caused by memory), ProcessKill (system forced termination).

Area 2: A bar chart is used to show the proportion of different dimensions in all crash exceptions.

ProcessKill analysis data is presented through an interactive combination of bar and pie charts. Click the bar chart, and the pie chart will display the distribution of ProcessKill types for a specific time period.

[h2]Frame Loss

Presents multi-dimensional statistics on consecutive frame loss, helping you quickly pinpoint the root cause.

Area 1: The frame loss overview displays the highest consecutive frame loss rate across all statistical dimensions.

Area 2: displays the top N pages or scenes with the highest frame loss rate by page or scene. You can click an area in the pie chart to view the consecutive frame loss rate of a specific page or scene.

[h2]Launch

Presents statistics on device startup in different dimensions, helping analyze the distribution of exceptions.

Area 1: features tabs for All (overall launch duration), Cold Launch, and Hot Launch, allowing you to switch between them and view their respective launch durations.

Area 2: displays the trend of overall duration in a line chart. The following figure is an example.

A bar chart alongside shows the reported quantity of anomalous duration instances.

Area 3: displays the duration of each launch stage. Clicking a stage name reveals its detailed duration metrics across different time periods.

Area 4: shows the duration trend of the currently selected launch stage over time.

[h2]Battery Usage

Presents statistics on the total battery usage of devices, as well as the battery usage and usage duration in the foreground and background.

Area 1: energy consumption overview. A line chart is used to display total battery usage, foreground battery usage, and background battery usage.

Area 2: shows the distribution of foreground battery usage and usage duration across the top 5 device components.

Area 3: shows the distribution of background battery usage and usage duration across the top 5 device components.