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); }
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"); }
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)); }
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)); }
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"); }