# Unity Profiler

Unity Profiler is a tool you can use to get performance information about your application. You can connect it to devices on your network or devices connected to your machine to test how your application runs on your intended release platform. You can also run it in the Editor to get an overview of resource allocation while you’re developing your application.

The Profiler gathers and displays data on the performance of your application in areas such as the CPU, memory, renderer, and audio. It’s a useful tool to identify areas for performance improvement in your application, and iterate on those areas.

# Build and Track

Step1: Go to Build Settings (menu: File > Build Settings) and select your application’s target platform. Enable the Development Build setting.

Step2: Install the APK to QIYU device.

Step3: Connect to the list of Unity Profiler

  • Open Unity Profiler

  • Go to Window > Analysis > Profiler

    image-20211029172052720

  • select the Attach to Player menu,and then select AndoridPlayer in the dropdown.

Note: Because the tool will spend a lot of resources, the resource consumption will be increased during tracking the data. So that the total consumption of data and frame time should be ignored. Regarding this, we suggest using QIYU Performance Tool (opens new window) rather than Profile Analyzer.

# Unity Profile Analyzer

Unity Profile Analyzer is to compare two profiling datasets together to analyze how your changes affect your application’s performance.

# Install Profile Analyzer

  1. Go to Window > Package Manager.
  2. Select Packages: Unity Registry in the Packages drop-down.
  3. Find Profile Analyzer and click install.

  1. Profile Analyzer will be shown in Window > Analysis > Profile Analyzer

# Loading and Saving Data

To save the data from the Profile Analyzer, click the Save button in any view. This saves the data in the .pdata format. To load this data, click the Load button in any view.

# Reference