Controls the Profiler from script.
从脚本控制分析器。
You can add custom Profiler sections in your scripts with Profiler.BeginSample and Profiler.EndSample.
你在脚本可以自定义分析器部分,带有Profiler.BeginSample 和 Profiler.EndSample。
In standalone games, Profiler can dump all profiling information using Profiler.logFile and Profiler.enabled.
在独立版游戏,Profiler可以转储所有的分析信息,使用 Profiler.logFile 和 Profiler.enabled。
Profiler is only available in Unity Pro.
Profiler仅可用于Unity Pro专业版。