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

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.

主站蜘蛛池模板: 云浮市| 田林县| 含山县| 鄂托克前旗| 龙口市| 筠连县| 郴州市| 措勤县| 麻栗坡县| 贡嘎县| 郯城县| 南丰县| 长乐市| 昔阳县| 岐山县| 宁津县| 栾城县| 雅安市| 龙里县| 吴川市| 莎车县| 南皮县| 临颍县| 秀山| 随州市| 外汇| 大埔县| 虹口区| 九龙县| 邢台县| 丰顺县| 孟村| 利辛县| 修水县| 虞城县| 襄城县| 南江县| 元谋县| 喀喇| 固阳县| 安福县|