public CounterGroup CreateCounterGroup(DateTime start, DateTime finish) { CounterGroup group = new CounterGroup(); group.Descriptions = new List <CounterDescription>(Counters.Count); Counters.ForEach(counter => group.Descriptions.Add(new CounterDescription() { Name = counter.CounterName })); group.Samples = Samples.FindAll(sample => start <= sample.Timestamp && sample.Timestamp <= finish); return(group); }
public void Clear() { Processes.Clear(); Counters = null; }