Ends the current profiling sample.
The Profiler displays samples in its Hierarchy and Timeline views.
no example available in JavaScript
using UnityEngine; using System.Collections; using UnityEngine.Profiling;
public class ExampleClass : MonoBehaviour { void Example() { Profiler.BeginSample("MyPieceOfCode"); // Code to measure... Profiler.EndSample(); } }
See Also: Profiler.BeginSample, Profiler.
Did you find this page useful? Please give it a rating: