Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
using UnityEngine.Profiling;
public class CustomSamplerTest:MonoBehaviour
{
CustomSampler _sampler;
void Start ()
{
// 事前にCustomSamplerを生成しておく必要あり
_sampler = CustomSampler.Create("Hoge");
}
void Update ()
{
_sampler.Begin();
// 計測したい処理
_sampler.End();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment