---
title: 向代码添加性能分析信息
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/zh-cn/engine/6000.0/manual/analysis/profiler/customizing/adding-information-code
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/analysis/profiler/customizing/adding-information-code.md
last_updated: 2026-10-03
generated_at: 2026-11-16T15:05:42.790Z
locale: zh-cn
---

# 向代码添加性能分析信息

> 使用性能分析Markers、计数器和元数据来检测代码以轨道性能Metrics。

您可以将性Add MarkersofilerMarkers到代码中，以进一步了解与应用程序程序相关的指定的性性能数据，并在自定义性能分析器模块中可视化这些数据。

| **主题**                                                                                                                     | **描述**                                |
| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| **[在代码简介中添加性能分析信息](/engine/6000.0/manual/analysis/profiler/customizing/adding-information-code/intro.md)**                 | 使用性性能分析器Markers和计数器来收集有关应用程序程序的指定的数据。 |
| **[向代码添加性能分析器 Markers](/engine/6000.0/manual/analysis/profiler/customizing/adding-information-code/add-markers-code.md)**  | Add Profiler分析Markers记来标记代码的区域。       |
| **[向代码中添加性能分析器计数器](/engine/6000.0/manual/analysis/profiler/customizing/adding-information-code/add-counters-code.md)**     | 使用性性能分析器数器收集指定的统计信息。                  |
| **[可视化性能分析器计数器](/engine/6000.0/manual/analysis/profiler/customizing/adding-information-code/creating-custom-counters.md)** | 将性Add Profiler到自定义性能性能分析器模块。          |

## 其他资源##additional-resources

* [使用性能分析器窗口](/engine/6000.0/manual/analysis/profiler/window.md)
* [性能分析器模块简介](/engine/6000.0/manual/analysis/profiler/visualizing-data/modules-introduction.md)
* [自定义性能分析器模块](/engine/6000.0/manual/analysis/profiler/customizing.md)
* [分析低关卡原生插件](/engine/6000.0/manual/scripting/compilation-and-code-reload/plug-ins/native-plugin-interface/low-level-native-plugin-profiler.md)
* [内存性能分析低关卡原生插件](/engine/6000.0/manual/scripting/compilation-and-code-reload/plug-ins/native-plugin-interface/low-level-native-plugin-memory-manager-api.md)
