Profiler.EndSample
Declaration
public static void EndSample();Описание
Завершает текущий образец профилирования.
Profiler отображает образцы в представлениях Hierarchy и Timeline.
using UnityEngine; using System.Collections; using UnityEngine.Profiling;
public class ExampleClass : MonoBehaviour { void Example() { Profiler.BeginSample("MyPieceOfCode"); // Code to measure... Profiler.EndSample(); } }
Дополнительные ресурсы: ,Profiler.BeginSample,, , Profiler,.