ソースコード
使用例
通常
using UnityEngine; using UnityEngine.Profiling; public class Example : MonoBehaviour { private void Update() { var sampler = CustomSampler.Create( "AAAAA" ); sampler.Begin(); // ... sampler.End(); } }
CustomSamplerScope
using UnityEngine; public class Example : MonoBehaviour { private void Update() { using ( new CustomSamplerScope( "AAAAA" ) ) { // ... } } }