目录

Graphics Profiler

Graphics Profiler is a debugging and analysis solution dedicated to GPU analysis and optimization. It helps boost the performance of OpenGL ES or Vulkan games and diagnose rendering and compute issues. Since DevEco Studio 6.0.0 Beta1, the entry for Graphics Profiler is provided. This tool is used to debug HarmonyOS phone devices and requires a debug certificate.

Constraints

This feature is available only in the Chinese mainland.

Procedure

  1. Push the app developed using OpenGL ES or Vulkan APIs to the device and confirm successful installation.
  2. On the top menu bar of DevEco Studio, choose View > Tool Windows > Graphics Profiler.
  3. On the Graphics Profiler page, configure the Ref All Resources and Verify Buffer Access parameters. After the configuration is complete, click Launch APP.

    • Ref All Resources: disabled by default. When it is enabled, all active resources are captured and saved in the trace, regardless of whether they are used by the captured frame.
    • Verify Buffer Access: disabled by default. Selecting this option enables buffer access verification.

    This configuration is optional. You can directly click Launch APP without configuring it.

  4. Launch the app on the frame capture interface. After the connection is established successfully, the Capture button is available. Set the number of frames to be captured, click Capture, and wait until the frame capture is complete.

    • Scope: non-editable, fixed to Frame.
    • Count: number of frames to be captured. The value ranges from 1 to 10.

  5. After the frame capture is complete, select a captured frame in the lower part of the window and click to automatically open Graphics Profiler for parsing the captured frame information.

    • The naming format of captured frame files is [App bundle name] _ [Frame capture time] _frame [Frame number].rdc.
    • Graphics Profiler can parse only one .rdc file at a time.

  6. For first-time use, download the Graphics Profiler executable as prompted, choose File > Settings (DevEco Studio > Preferences/Settings on macOS) > Tools > Graphics Profiler, and configure the tool path. The default path is Tool installation path/frame_profiler/FrameProfiler.exe (or Tool installation path/Contents/MacOS/FrameProfiler on macOS).