static function BeginSample (name : string) : void
Description描述
Begin profiling a piece of code with a custom label.
开始分析一段代码,带有一个自定义标签。
This will show up in the Profiler hierarchy.
这将显示在Profiler的层级面板。
Profiler.BeginSample ("MyPieceOfCode");
// do something that takes a lot of time
Profiler.EndSample ();参见:
Profiler.EndSample
本文介绍了一种使用Profiler.BeginSample和Profiler.EndSample进行代码性能分析的方法。通过为要分析的代码块添加自定义标签,可以在Profiler的层级面板中查看详细的性能数据。
962

被折叠的 条评论
为什么被折叠?



