Last active
December 7, 2018 02:41
-
-
Save baobao/346b579973ff45dd7f42f1a4ca2cfa48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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