Version: 2019.3
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(); } }