public void DequeueSample()
        {
            while (m_runningSamplesQueue.Count > 0)
            {
                Sample s = null;
                lock (this)
                {
                    s = m_runningSamplesQueue.Dequeue();
                }
                LuaProfilerTreeViewItem.s_frameCount = s.frameCount;
                var instance = LuaDeepProfilerSetting.Instance;
                if (!(instance.isRecord && !instance.isStartRecord))
                {
                    m_catchLuaMemory += s.costLuaGC;
                }
                LoadRootSample(s, LuaDeepProfilerSetting.Instance.isRecord);

                s.Restore();
            }
            if (LuaProfilerWindow.DoClear != null)
            {
                LuaProfilerWindow.DoClear();
                LuaProfilerWindow.DoClear = null;
            }
        }
Exemple #2
0
        public void DequeueSample()
        {
            while (m_runningSamplesQueue.Count > 0)
            {
                Sample s = null;
                lock (this)
                {
                    s = m_runningSamplesQueue.Dequeue();
                }
                m_catchLuaMemory += s.costLuaGC;
                LoadRootSample(s, LuaDeepProfilerSetting.Instance.isRecord);

                s.Restore();
            }
            if (LuaProfilerWindow.DoClear != null)
            {
                LuaProfilerWindow.DoClear();
                LuaProfilerWindow.DoClear = null;
            }
        }