# 在自己的进程中运行性能分析器

> Use the Standalone Profiler to run the Profiler in its own process.

要在 Unity 编辑器或播放模式下获得更好的性能分析器数据，请使用独立性能分析器 (Standalone Profiler)，该性能分析器在其专用进程中启动。独立性能分析器可以减少开销，因为性能分析器不会分析自身或与您的应用程序或编辑器共享进程。当与编辑器以共同的进程运行性能分析器时，性能分析器的功能和控件保持不变。

## 使用独立性能分析器##use-the-standalone-profiler

要使用独立性能分析器：

1. 转到**窗口 (Window) > 分析 (Analysis) > 性能分析器 (Profiler)（独立进程）**
2. Unity 在自己的窗口中在编辑器进程之外打开性能分析器

与在编辑器的同一进程中打开独立性能分析器相比，启动独立性能分析器需要更长的时间。不能将连接到单独进程的任何编辑器窗口停靠到主进程的窗口上。

当重新启动编辑器时，Unity 不会重新打开进程外性能分析器中的窗口。

## 其他资源##additional-resources

* [Profiler 窗口参考](/engine/6000.0/manual/analysis/profiler/window-reference.md)
* [在播放模式下收集性能数据](/engine/6000.0/manual/analysis/profiler/collect-data/profiling-applications/profiling-play-mode.md)
* [收集有关 Unity 编辑器的性能数据](/engine/6000.0/manual/analysis/profiler/collect-data/profiling-applications/profiling-edit-mode.md)
