目录

In-depth Capture for Problem Locating

You can select an analysis task specific to the performance problem scenario to perform in-depth analysis on your app/atomic service. Currently, the following scenarios are supported:

Procedure

  1. Open DevEco Profiler, select a scenario template, and create a session.

    : Select a device from the device list.

    : Select the app to be debugged from the process list. (The app can be a running app or an installed but not started app.) Since version 26.0.0, foreground apps are displayed at the top of the Running Applications list in the process list.

    : In the task creation area, select the desired task type and click Create Session.

  2. Configure and confirm the session environment. In the capture details panel, there are multiple icons on the toolbar. You can hover over the icons to view tooltip hints. You can also adjust the capture options by selecting options from the drop-down list box in each lane area.

    Before starting capture, click to select the lane to capture.

  3. Start capture to reproduce the performance degradation scenario.

    Click in the upper-left corner of the task window or in the task list on the left to start capture. Operate the target app on the profiling device and execute required test actions, then wait for the task status to switch from initializing to recording. During capture, you cannot change the template. To use another template, stop the current capture and select that template to start a new round of capture.

  4. Once you finish reproducing the performance degradation scenario, stop the capture.

    Click the stop button to trigger data parsing. The parsing completes when the lane task status switches from analyzing to rendering, and detailed profiling data appears in the right-side details pane. The parsing process may involve a large amount of data. Wait patiently for the parsing to complete.

    If lanes such as ArkTS Callstack, Callstack, All Heap & Anonymous VM, All Heap, All Anonymous VM, and ArkTS Allocation display No Data after the capture, hover over the triangular warning icon next to the lane name to view the cause.