Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void Clear()
 {
     Processes.Clear();
     Counters = null;
 }