public static void EndSample ();

설명

Ends the current profiling sample.

The Profiler displays samples in its Hierarchy and Timeline views.

using UnityEngine;
using System.Collections;
using UnityEngine.Profiling;

public class ExampleClass : MonoBehaviour { void Example() { Profiler.BeginSample("MyPieceOfCode"); // Code to measure... Profiler.EndSample(); } }