Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active December 7, 2018 02:41
Show Gist options
  • Save baobao/346b579973ff45dd7f42f1a4ca2cfa48 to your computer and use it in GitHub Desktop.
Save baobao/346b579973ff45dd7f42f1a4ca2cfa48 to your computer and use it in GitHub Desktop.
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