官术网_书友最值得收藏!

Editor or standalone instances

The only way to access the Profiler is to launch it through the Unity Editor and connect it to a running instance of our application. This is the case whether we're executing our game in Play Mode within the Editor, running a standalone application on the local or remote device, or we wish to profile the Editor itself.

To open the Profiler, navigate to Window | Profiler within the Editor:

If the Editor is already running in Play Mode, then we should see reporting data actively gathering in the Profiler window.

To profile standalone projects, ensure that the Development Build and Autoconnect Profiler flags are enabled when the application is built.

Choosing whether to profile an Editor-based instance (through the Editor's Play Mode) or a standalone instance (built and running separately from the Editor) can be achieved through the Connected Player option in the Profiler window:

Note that switching back to the Unity Editor while profiling a separate standalone project will halt all data collection since the application will not be updated while it is in the background.

Note that the Development Build option is named Use Development Mode and the Connected Player option is named Active Profiler in Unity 5.

主站蜘蛛池模板: 荣昌县| 葫芦岛市| 府谷县| 民丰县| 吴川市| 海安县| 东源县| 故城县| 防城港市| 西吉县| 乌兰浩特市| 航空| 伊春市| 黎川县| 民县| 英德市| 河间市| 抚远县| 通化县| 那坡县| 盐源县| 轮台县| 莫力| 泰来县| 庄河市| 长子县| 肥东县| 德化县| 满城县| 武威市| 鹿邑县| 德昌县| 固镇县| 达孜县| 新泰市| 伽师县| 信阳市| 鹤岗市| 西林县| 绩溪县| 秦安县|