public void RunGC()
        {
            this.CancelGCPass();
            PerfLogger.Reset();
            IEnumerator enumerator = this.PawnGCPass().GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    object obj = enumerator.Current;
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = (enumerator as IDisposable)) != null)
                {
                    disposable.Dispose();
                }
            }
            float num = PerfLogger.Duration() * 1000f;

            PerfLogger.Flush();
            Log.Message(string.Format("World pawn GC run complete in {0} ms", num), false);
        }
Esempio n. 2
0
        public void RunGC()
        {
            CancelGCPass();
            PerfLogger.Reset();
            IEnumerator enumerator = PawnGCPass().GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    object current = enumerator.Current;
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = (enumerator as IDisposable)) != null)
                {
                    disposable.Dispose();
                }
            }
            float num = PerfLogger.Duration() * 1000f;

            PerfLogger.Flush();
            Log.Message($"World pawn GC run complete in {num} ms");
        }
Esempio n. 3
0
        static public void RunGC(WorldPawnGC __instance)
        {
            __instance.CancelGCPass();
            PerfLogger.Reset();
            PawnGCPass(__instance).ExecuteEnumerable();
            float num = PerfLogger.Duration() * 1000f;

            PerfLogger.Flush();
            Log.Message(string.Format("World pawn GC run complete in {0} ms", num));
        }
Esempio n. 4
0
        public void RunGC()
        {
            this.CancelGCPass();
            PerfLogger.Reset();
            foreach (object current in this.PawnGCPass())
            {
            }
            float num = PerfLogger.Duration() * 1000f;

            PerfLogger.Flush();
            Log.Message(string.Format("World pawn GC run complete in {0} ms", num));
        }
Esempio n. 5
0
        public void RunGC()
        {
            CancelGCPass();
            PerfLogger.Reset();
            foreach (object item in PawnGCPass())
            {
                _ = item;
            }
            float num = PerfLogger.Duration() * 1000f;

            PerfLogger.Flush();
            Log.Message($"World pawn GC run complete in {num} ms");
        }