Version: 1.6
语言 : 中文
Stacktrace Utility
ArkUI Dump

Performance

The Performance window tracks the performance data for your application. It can automatically capture data snapshots for the selected application periodically. You can select Performance tag to open the Memory window.

For more information, you can click the following link to reach directly:

Note: Please make sure your OpenHarmony device have already connected to Tuanjie Editor correctly. For more information, you can check Getting started with the OpenHarmony Hilog package

Performance window interface

Performance
Performance

To open the Performance window:

  1. Open the OpenHarmony Hilog window.
  2. From the tag, select Performance.

|Area|Description| |—|—| | 1 | Performance toolbar: Contains options and tools for the Performance window. | | 2 | Performance details panel: Contains the list of performance data which can be choosen to capture. | | 3 | Performance chart: Displays performance data in the dimension of time axis. | | 4 | Performance statistics: Contains data at a certain moment and average values ​​over a period of time​. |

Performance toolbar

The toolbar contains options for selecting a package and functions for starting or pausing statistics.

Performance Toolbar
Performance Toolbar
Functions Description
Device Selector Specifies the OpenHarmony device to connect the Performance window to.
Package Selector Specifies the application on the OpenHarmony device to display data for.
Start/Pause Starts or pauses fetching performance data. When you click again after pausing and start collecting statistics, the data will be displayed from the current moment, and the data on the paused timeline will be empty.
Restart Reconnects the Performance window to the application and the device. If the application is no longer running, this reconnects to the device with no application selected.
Clear Clears the data.

Performance details panel

The details panel contains the list of performance data which can be choosen to capture.

The available performance data is divided into three parts: system data, package data, and other data.

Click the corresponding directory to view the detailed optional content. After clicking a detailed entry, the line graph of the performance data will be drawn in the performance chart window on the right.

Performance Detail Panel
Performance Detail Panel
Functions Description
System System’s data which can be choosen, includes GPU usage and GPU frequency.
Package Package’s data which can be choosen, includes ProcCpuLoad(CPU load percentage of a process), ProcCpuUsage(CPU usage of a process), ProcUCpuUsage(user state CPU usage of a process), ProcSCpuUsage(kernel state CPU usage of a process), Memory and CPU Detail Info.
Others Package’s data which can be choosen, includes FPS, GPU Thermal, SOC Thermal, Battery Consumption, Battery Voltage, Network’s uplink and downlink rates.

Performance chart

The performance chart displays performance data in the dimension of time axis.

Performance Chart
Performance Chart
  • Select the corresponding directory in the details panel on the left to view the detailed optional content.
  • Click the start button in the toolbar on the top.
  • The line graph of the performance data will be drawn in the performance chart window.

Note: If you have choosen the Memory in the details panel, you can select and switch to view different types of memory statistics in the chart of memory.

Performance Memory Chart
Performance Memory Chart

Performance statistics

This performance window will automatically count and calculate the average of each data when you click start button in the toolbar. The average value will be shown in each data chart.

When the mouse stays on the timeline, a floating window will pop up and display detailed data at the current moment.

Performance Statistics
Performance Statistics

How to capture performance

To use the Performance tool to capture data for your application manually:

  1. Open the Performance window.
  2. Make sure your OpenHarmony device is connected to the OpenHarmony Hilog.
  3. Select device.
  4. Open the application on your device and select application by package name on performance windows.
  5. Select device and package.
  6. Select the list of data on the left of window.
  7. Click start button in the toolbar on the top of the window, the performance information will be displayed on the window automatically.
Stacktrace Utility
ArkUI Dump