Example #1
0
        private void Start()
        {
            GPerfMonitor.GetInstance().OpenRecorder(RecorderType.Remote);
#if GPERF_XLUA
            XLua.LuaEnv env = wt.framework.XLuaManager.Instance.GetLuaEnv();
            GPerfMonitor.GetInstance().SetLuaEnv(env);
#endif
        }
Example #2
0
        private static void OnRuntimeLoaded()
        {
            GPerfMonitor.GetInstance().DoInit();

            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.Battery);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.FPS);

            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.SystemMemory);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.ProfilerMemory);
#if GPERF_XLUA
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.XLuaMemory);
#endif

            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.Device);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.App);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.CPU);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.FrameTime);
            GPerfMonitor.GetInstance().OpenSampler(SamplerMetricType.Log);
        }
Example #3
0
        private void OnGUI()
        {
            GUILayout.BeginArea(new Rect(0, 60, Screen.width, Screen.height));
            {
                if (GUILayout.Button(m_IsRunning ? "Stop" : "Start", GUILayout.Height(80)))
                {
                    if (m_IsRunning)
                    {
                        GPerfMonitor.GetInstance().Shuntdown();
                    }
                    else
                    {
                        GPerfMonitor.GetInstance().Startup();
                    }
                    m_IsRunning = !m_IsRunning;
                }

                if (GUILayout.Button("PrintLog", GUILayout.Height(80)))
                {
                    Debug.Log("Test LOg");
                }
            }
            GUILayout.EndArea();
        }
Example #4
0
 private void OnDestroy()
 {
     StopAllCoroutines();
     GPerfMonitor.GetInstance().DoDispose();
 }
Example #5
0
 private void Update()
 {
     GPerfMonitor.GetInstance().DoUpdate(Time.unscaledDeltaTime);
 }