Version: 2023.2
低级原生插件 Profiler API
Analyzing profiler traces

Profiling tools

Profiling your application is the best way to measure its performance. You can use a variety of profiling tools to understand where there might be any issues with elements of your application including memory usage, CPU performance, GPU performance, and your custom scripts.

Unity’s profiling tools

Unity has several profiling tools that you can use to measure the performance of your application:

  • Unity Profiler: Measure the performance of the Unity Editor, your application in Play mode, or connect to a device running your application in development mode.
  • Profiling Core package: Provides APIs that you can use to add contextual information to Unity Profiler captures
  • Memory Profiler: A tool that provides in-depth memory performance analysis
  • Profile Analyzer: Compare two profiling datasets together to analyze how your changes affect your application’s performance.
  • Frame Debugger: A tool that provides a way to measure the graphical performance of your application.

Third party profiling tools

Alongside the Unity Profiler, you should use platform-specific profilers to ensure that your application runs as expected. The following list provides some examples of available profiling tools. You can also use Unity’s low level native plug-in Profiler API to export profiling data to third-party profiling tools.

These tools have the most utility on platforms that can use IL2CPP to produce a C++ version of the project. These native-code versions provide transparent call stacks and high-resolution method timings that are unavailable when running under Mono.

低级原生插件 Profiler API
Analyzing profiler traces
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961