/// <summary> /// Logs all counters in the given collection via <see cref="Logger.Statistic"/>. Each counter is labelled as <c>NamePrefix.EnumName</c>. /// </summary> public static void LogAsStatistics <TEnum>( this CounterCollection <TEnum> counterCollection, string namePrefix, LoggingContext context) where TEnum : System.Enum { Logger.Log.BulkStatistic(context, counterCollection.AsStatistics(namePrefix)); }
/// <inheritdoc /> public IDictionary <string, long> GetStats() { return(m_counters.AsStatistics("SymbolDaemon")); }
/// <nodoc /> protected IDictionary <string, long> GetDaemonStats(string prefix = null) => m_counters.AsStatistics(prefix);