try to reduce memory fragmentation in metrics

This commit is contained in:
13xforever 2020-07-06 13:13:52 +05:00
parent 222b24041b
commit e6348937db

View File

@ -73,6 +73,7 @@ namespace CompatBot
tc.TrackMetric("time-since-last-incoming-message", TimeSinceLastIncomingMessage.ElapsedMilliseconds);
tc.TrackMetric("gc-total-memory", GC.GetTotalMemory(false));
tc.TrackMetric("github-limit-remaining", GithubClient.Client.RateLimitRemaining);
tc.Flush();
}
} while (!Config.Cts.IsCancellationRequested);
}