示例#1
0
 /// <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));
 }
示例#2
0
 /// <inheritdoc />
 public IDictionary <string, long> GetStats()
 {
     return(m_counters.AsStatistics("SymbolDaemon"));
 }
示例#3
0
 /// <nodoc />
 protected IDictionary <string, long> GetDaemonStats(string prefix = null) => m_counters.AsStatistics(prefix);