示例#1
0
文件: DevEnv.cs 项目: ikorin24/Elffy
        public static void Stop()
        {
            if (Interlocked.CompareExchange(ref _isEnabled, 0, 1) == 0)
            {
                return;
            }

            // Disable diagnostics
            GCTracker.End();
        }
示例#2
0
文件: DevEnv.cs 项目: ikorin24/Elffy
        public static void Run()
        {
            if (Interlocked.CompareExchange(ref _isEnabled, 1, 0) == 1)
            {
                return;
            }

            // Enable diagnostics
            GCTracker.Init();
        }