Пример #1
0
 public static void ReportGlobalSumEvent(string eventName, double dValue)
 {
     if (!tribeDataSets.TryGetValue(GLOBAL, out var dataset))
     {
         tribeDataSets.TryAdd(GLOBAL, dataset = new TribeDataSet());
     }
     dataset.ReportSumEvent(eventName, (float)dValue);
 }
Пример #2
0
 public static void ReportGlobalCountEvent(string eventName)
 {
     if (!tribeDataSets.TryGetValue(GLOBAL, out var dataset))
     {
         tribeDataSets.TryAdd(GLOBAL, dataset = new TribeDataSet());
     }
     dataset.ReportCountEvent(eventName);
 }
Пример #3
0
        public static void ReportAverageEvent(string tribeName, string eventName, double dValue)
        {
            float value = (float)dValue;

            if (!tribeDataSets.TryGetValue(tribeName, out var dataset))
            {
                tribeDataSets.TryAdd(tribeName, dataset = new TribeDataSet());
            }
            dataset.ReportAverageEvent(eventName, value);
            ReportGlobalAverageEvent(eventName, value);
        }