# 性能分析器偏好参考

> Reference for settings related to the Profiler.

Preferences 窗口包含额外的 Profiler 窗口设置。要打开 Preferences 窗口，转到菜单：**Unity > 设置 (Settings) > 分析 (Analysis) > 性能分析器 (Profiler)**。

## 性能分析器设置##profiler-settings

调整设置，即可自定义性能分析器收集和显示数据的方式。

| **设置**                                  |                   | **描述**                                                                                                                                  |
| --------------------------------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| **Frame count**                         |                   | 设置性能分析器要捕获的最大帧数。可以将此数字设置在 300 到 2,000 之间。                                                                                               |
| **Show stats for 'current frame'**      |                   | 设置当选择性能分析器控件上的当前帧 (Current Frame) 按钮 (⏭) 时是否在帧线上显示注释。默认情况下此设置被禁用，这是因为注释可能导致难以实时查看数据。要显示注释，请启用此设置。                                       |
| **Default recording state**             |                   | 选择性能分析器应该在哪种记录状态下打开：                                                                                                                    |
|                                         | **Enabled**       | 在性能分析会话之间保持启用记录 (Record) 按钮                                                                                                             |
|                                         | **Disabled**      | 禁用记录按钮，无论在性能分析会话期间是否将其打开或关闭                                                                                                             |
|                                         | **Remember**      | 记住您是否在会话期间启用或禁用了记录按钮，并在您下次打开 Profiler 窗口时保持其上次的状态。                                                                                      |
| **Default editor target mode on start** |                   | 选择目标选择 (Target Selection) 下拉选单默认的目标模式：                                                                                                  |
|                                         | **Play mode**（默认） | 默认目标模式为[播放模式性能分析](/engine/6000.0/manual/analysis/profiler/collect-data/profiling-applications/profiling-play-mode.md)。                  |
|                                         | **Edit mode**     | 默认目标模式为[编辑模式性能分析](/engine/6000.0/manual/analysis/profiler/collect-data/profiling-applications/profiling-edit-mode.md)。                  |
| **Custom connection ID**                |                   | 更改“目标选择”下拉选单中显示的应用程序名称。                                                                                                                 |
| **Target Frames Per Second（突出显示模块）**    |                   | 设置[突出显示性能分析器模块](/engine/6000.0/manual/analysis/profiler/collect-data/visualizing-data/highlights.md)每秒使用的目标帧。突出显示性能分析器模块会标记超过此目标帧率的任何帧。 |

## 其他资源##additional-resources

* [Profiler 窗口参考](/engine/6000.0/manual/analysis/profiler/window-reference.md)
* [性能分析器模块简介](/engine/6000.0/manual/analysis/profiler/collect-data/visualizing-data/modules-introduction.md)
* [将性能分析器连接到数据源上](/engine/6000.0/manual/analysis/profiler/collect-data/profiling-applications.md)
