概要
using System; using UnityEngine; using UnityEngine.Profiling; public class Test : MonoBehaviour { private void Update() { var samplerA = CustomSampler.Create( "TEST A" ); samplerA.Begin(); Func<int, int> funcA = n => n + 1; funcA( 25 ); samplerA.End(); var samplerB = CustomSampler.Create( "TEST B" ); samplerB.Begin(); int funcB( int n ) => n + 1; funcB( 25 ); samplerB.End(); } }