Exemple #1
0
        public static void Record(string name, long value)
        {
            if (!aggregators.ContainsKey(name))
            {
                aggregators[name] = new Aggregator(name, false);
            }

            aggregators[name].AddValue(value);
        }
Exemple #2
0
        public static void Record(string name, Stopwatch stopwatch)
        {
            if (!aggregators.ContainsKey(name))
            {
                aggregators[name] = new Aggregator(name, true);
            }

            aggregators[name].AddValue(stopwatch.ElapsedTicks);
        }
Exemple #3
0
        public static void Record(string name, long value)
        {
            if (record) {
              if (!aggregators.ContainsKey(name)) {
                aggregators[name] = new Aggregator(name, true);
              }

              aggregators[name].AddValue(value);
            }

            count++;
            if (count > ignore_count) {
              record = true;
            }
            if (count % print_period == 0) {
                Print();
            }
        }