public static void Record(string name, long value) { if (!aggregators.ContainsKey(name)) { aggregators[name] = new Aggregator(name, false); } aggregators[name].AddValue(value); }
public static void Record(string name, Stopwatch stopwatch) { if (!aggregators.ContainsKey(name)) { aggregators[name] = new Aggregator(name, true); } aggregators[name].AddValue(stopwatch.ElapsedTicks); }
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(); } }