Skip to main content

CPU Profiler

Overview

CPU Profiler is mainly used to display the time spent by a program in the application.

Opening the CPU Profiler

Click Tool -> Profiler -> CPU Profiler to open the CPU Profiler.

2023-01-03_170321

The CPU Profiler interface is shown below.

2023-01-03_170353

No.NameDescription
1CaptureGet CPU debugging data once.
2Show HotspotsDisplay performance hotspots.
3Details PanelMainly display the time range of the currently captured frames and the status of the time spent by each program in the application.

Details Panel

The Details panel outlines the time spent by the program in the application and the relevance of that time in the form of timelines and graphics.

2023-01-03_171344

The Details Panel displays timelines of the captured frame length and its time breakdown information.

Four different colors are used to easily distinguish between function calls. Each square represents a program function with its length representing the execution time of the function. The longer the square, the more time the function is executed and the more energy is consumed. Each lower level represents other functions that the program function will call, and each higher level represents the function of a deeper level to be called. The bottommost squares represent the functions that are using the CPU when the frame is captured.

The Details Panel provides a clearer picture of the current project's work efficiency, different functions‘ call extent, association method and working states, whether they are in the waiting, idle or completed status.

Showing Performance Hotspots

It is easier to find the code segment that takes the longest execution time in the program through the performance Hotspots display, so as to identify the cause of underperformance.

2023-01-03_172912

No.NameDescription
1Percentage Of TimePercentage of total time spent on this function.
2CPU TimeTotal time spent on this function (in milliseconds).
3Number Of CallsNumber of times this function has been called in the current frame.
4Start AnalysisCapture performance data once and generate detailed information.
5View FileAutomatically pop up the folder where the file is located.
6CloseClose window.