Function Description
During app/atomic service development, if jank occurs, such as unsmooth form sliding, slow page interaction, and choppy animations, you can use the Frame template provided by DevEco Profiler to capture key data throughout the jank occurrence and pinpoint root causes for frame drops and stuttering.
The Frame template supports the following lanes: Anomaly, User Events, Frame, ArkUI Component, ArkUI State, User Trace, ArkTS Callstack, Callstack, Network Traffic, Network Request, Energy, CPU Core, and Process. This section describes the Anomaly, User Events, and Frame lanes. For details about other lanes, see the corresponding template.
Checking GPU Usage
Expand the Frame lane, which displays the GPU usage of the current device. The sub-lane displays the frame data on the app and Render Service.
In the sub-lanes labeled RS Frame or App Frame, frames that are rendered normally are displayed in green; janky frames are displayed in red.
- During frame rendering, the app submits a rendering request to Render Service, which submits the request to the hardware for compositing and rendering. This means that frames on the app are associated with those on Render Service. However, they are not always in a one-to-one association, since frames from multiple apps or multiple frames from the same app may be submitted to the same frame on Render Service.
- The expected duration required for frame rendering is related to the frame rate. Generally, the frame rate is 60, and the corresponding Vsync period is 16.6 ms. That is, the frame rendering duration on the app or Render Service must be within 16.6 ms. If the actual end time of frame rendering is later than the expected end time, the frame is considered frozen.

Checking Frame Data Statistics of All Processes
- Drag the mouse on the timeline to select a time period.
- Select the Frame lane. On the Statistics tab, frame information in the selected period is displayed by process. The information includes the jank rate, number of jank times, maximum number of consecutive jank times, maximum jank duration, average jank duration, and average normal duration.

- Click the redirection button of any process in the Statistics list to go to the Frame List. This area displays the start time, total duration, GPU duration, and jank type of each frame of that process.

- Click any frame in the Frame List. More key information about the frame is displayed in the More area on the right. You can learn about the expected start time and expected duration of the frame. You can also click
to navigate to the associated slice.
Checking Frame Data Statistics of a Process
- Drag the mouse on the timeline to select a time period.
- Expand the Frame lane and select a sub-lane with the App Frame or RS Frame label.
The Details panel in the lower part displays the RS frame statistics in the selected period, including the start time, total duration, GPU duration, and jank type of each frame.

- Click any frame in the list. More key information about the frame is displayed in the More area on the right. You can learn about the expected start time and expected duration of the frame. You can also click
to navigate to the associated slice.
Checking Frame Information
Expand the Frame lane and select a sub-lane labeled App Frame or RS Frame. The upper part of the selected lane's chart area shows the non-UI functions with the longest duration, while the lower part shows the UI main thread lane. If you hover over a frame, a tooltip is displayed, showing the jank information of the frame.

The key information for the selected frame appears in the
Frame pane at the bottom of the window, such as the VSync ID, start time, app duration, app logic execution time, render service duration, GPU duration, total duration, jank type, and potential root causes for jank. In sub-lanes labeled
App Frame, the
Non UI area lists top time-consuming non-UI functions, showing details including the start time, end time, duration, and function name.
- After an object is selected, DevEco Profiler automatically associates the slices related to the object with arrows.
- If the frame exceeds the expected end time, two lines are displayed, corresponding to the expected start time and expected end time. The two lines are used for association analysis of traces or function sampling.
- The following jank types are available: No Jank (no frame freezing), AppDeadlineMissed (frame freezing on the app), and RenderDeadlineMissed (frame freezing on Render Service).

Viewing the Page Layout of a Specified Frame
Since DevEco Studio 5.1.0 Release, you can view the layout information of a specified frame in the latest recording session.
Since DevEco Studio 6.1.0 Beta1, a Frame Layout toggle has been added to the settings menu accessible via
. When the toggle is disabled, viewing the layout information of a specified frame in the latest session is not supported. This toggle is disabled by default.
Currently, this feature is not supported on wearables.
- Expand the Frame lane and click any frame in a sub-lane labeled App Frame or RS Frame. The Details area displays the detailed information about the frame. Click Open Layout to open the corresponding .arkli file in ArkUI Inspector. Click Download Layout to download the .arkli file to a specified directory. Then, you can manually import the file to ArkUI Inspector to view the page layout information.
Before clicking Download Layout or Open Layout, ensure that the app is running in the foreground so that full rendering data can be replayed and the .arkli file obtained.

- You can view the component tree and component property information in ArkUI Inspector. Currently, the following components are supported:
- BackgroundFilter: background filter.
- nodeGroup: node group type. The value 0 indicates a node that is not part of any node group, 1 indicates a node group marked by an animation, 2 indicates a node group marked by UI, 4 indicates a node group marked by the user, and 8 indicates a node group marked by a foreground filter.
- nodeGroupReuseCache: cache usage. The value 0 indicates that the cache is being generated or no cache is needed, and 1 indicates that the cache is being reused.

Viewing Frame Rate Statistics
- Expand the Frame lane and drag to select a segment of data.
- Sub-lanes labeled App Frame or RS Frame display an FPS marker, which shows the frame rate statistics for the selected range.

- In sub-lanes labeled RS Frame, enable Only ArkWeb data to filter data that includes ArkWeb frames.

Viewing Animation Details
Animation smoothness is crucial for a positive user experience in apps. To help you optimize animations for a smoother experience, DevEco Profiler provides profiling for animations.
Expand the Frame lane and view the Animation sub-lane. Hover over an animation to display its detailed information, including the response latency, animation duration, completion latency, expected frame rate, and FPS.
- Response latency: displayed in green if the latency is less than or equal to 85 ms; displayed in light green if the latency is greater than 85 and less than or equal to 150 ms; displayed in light red if the latency is greater than 150 and less than or equal to 250 ms; displayed in dark red if the latency is greater than 250 ms.
- Animation duration: displayed in green if the FPS is greater than the target frame rate; displayed in dark red if the FPS is less than the target frame rate. In smart refresh rate mode, where the frame rate is variable, the color is gray. The target frame rate is related to the expected frame rate. Typically, the expected frame rate is 60 Hz, and the target frame rate is calculated as 60 Hz x 91.7%.
- Completion latency: displayed in dark red if either the response latency or the animation duration is displayed in dark red.
- Expected frame rate: highest frame rate at which the system operates smoothly, such as 60 Hz, 90 Hz, or 120 Hz. In smart refresh rate mode, the expected frame rate is not displayed.
In the Launch template, click the Frame lane. The details about the startup animation are displayed in the Details area, and the animation data list is displayed in the More area.

Checking the Component Animation Information
Since DevEco Studio 6.0.0.828, the Component Animation sub-lane is added to the Frame lane to display various animation types in the app from the perspective of components, including attribute animation (animation), explicit animation (animateTo), and keyframe animation (keyframeAnimateTo) and page transition (pageTransition).
In the Details area, you can view detailed information for each animation, including start/end time, frame rate, animation curve type, and the component properties affected by the animation. Click an animation in the list. The More area on the right displays the property change process of the component affected by the animation.

Inspecting Frame Loss and Stuttering in Dynamic Frame Rate Scenarios
Leverage the Lost Frames and Hitch Time sub-lanes to pinpoint and refine issues related to frame loss and stuttering.
- Lost Frames: displays the number of frames lost in the current time period. The Lost Frames result is rounded to the nearest integer using a custom rounding rule (round down below 6, round up at 7 and above) for statistical purposes.
- Hitch Time: displays the duration of stuttering in the current time period. It is calculated by subtracting the expected time for a single frame from the interval between two consecutive frames. If the result exceeds 70% of the expected time for a single frame, it is considered stuttering.
- Create a Frame analysis task, and capture related data. If there is any frame loss or stuttering, rectangular graphs are displayed at the corresponding timestamps in the Lost Frames and Hitch Time sub-lanes.

- Hover over a specific time point in the lane chart. The tooltip displays the number of lost frames and the stuttering time for that period.

Checking the Frame Rate of a Component
You can use the Display Vsync and DisplaySync_cb(tid) sub-lanes in the Frame lane to detect the variable frame rate.
- Display Vsync: displays the screen refresh rate in the selected time period. The distribution statistics of VSync signals in the period are collected by the following categories: ≤ 30 Hz, 30–60 Hz, 60–90 Hz, and > 90 Hz. The statistical items include the distribution ratio, minimum/maximum/average duration, and average Hz of each category in the selected period. When the underlying system adjusts the frame rate, the information is updated automatically. This helps you know whether the VSync changes meet your expectations. This lane supports data collection only on devices equipped with a hardware screen.
- DisplaySync_cb(tid): displays the frame rate of a component, for example, DisplaySync or XComponent. The frame rate is variable in different scenarios during debugging. Therefore, you need to check whether the actual system performance meets the expectation. This is especially true for rendering of DisplaySync, which is executed in the UI main thread. Simultaneous rendering requests will be queued in the UI main thread, and any delay affects the rendering of other components, causing UI frame freezing.
As shown in the following figure, in vsync2 and vsync4, the component rendering in the VSync period takes a long time, squeezing the rendering time of the next Vsync period and causing frame loss.

- Select the Display Vsync sub-lane and drag the mouse on the timeline to select a time period.
- On the details panel, view the screen refresh rate, maximum duration, minimum duration, average duration, and average number of frames in the selected period.

- Select the Display Vsync sub-lane to view the duration and frame rate of the current frame.

- Select the DisplaySync_cb lane to view the frame rate and rendering time of the component on the app side.

- If frame loss occurs in the component, the DisplaySync_cb sub-lane displays the frame loss information in red.

Identifying Prolonged Decoding and Threshold-Exceeding Serialization or Deserialization Operations
If there are images in the project and jank occurs during decoding or rendering, you can use the Anomaly lane to check whether an alarm indicating slow decoding is generated during decoding in the main thread. If yes, determine the time period when the alarm is generated.
If worker threads of TaskPool or Worker are used in an app, cross-thread object transfer is typically triggered, along with serialization and deserialization operations. For serialization and deserialization operations exceeding the duration threshold, the Anomaly lane provides corresponding duration alerts, showing the start time and duration of the operation.
- Drag the mouse on the timeline to select a time period. When the duration exceeds 50% of the VSync period, a red alert "Image decoding has exceeded 50% of the VSync time" is displayed in the Anomaly lane.
- On the details panel, view the statistics on excessive decoding time, including the type, resource name, count, total duration, minimum duration, average duration, maximum duration, standard duration deviation, source size, and target size.

- Check the Anomaly lane for warnings on serialization and deserialization operations that exceed the threshold in terms of time consumption. You can click the lane start configuration button in the toolbar to configure the detection threshold, with the default threshold set to 8 ms.
- On the details panel, view the statistics on time consumption of serialization and deserialization during the recording period, including the type, count, total duration, minimum duration, average duration, maximum duration, and standard duration deviation.

Due to privacy and security policies, the Anomaly lane is not available for apps that have been released on AppGallery.
Checking Duration Statistics of User Events
In jank and frame drop scenarios, view user events in the User Events lane to check information such as the event start time, app processing start time, and app processing duration.
- Select the User Events lane and drag the mouse on the timeline to select a time period.
- The details panel displays details about user events in the selected period, including the user event ID, event start time (Input Time), app processing start time (Processing Start), app processing duration (Duration), and event type (User Event Type).

- Click a bar in the User Events lane. Details about the event are displayed in the Slice Detail area.

For more performance profiling best practices, see Application Quality Overview, Analyzing Touch Response Latency of Web Pages, and Analyzing Loading Completion Latency of Web Pages.