示例#1
0
        public PerformanceCollector(string instance)
        {
            currentPerformanceData = null;
            logger        = new Logger();
            this.instance = instance;
            totalMemory   = GetTotalMemory();
            config        = new AgentConfig();

            InitCounters();

            InitMonitors();
        }
示例#2
0
        private void InitializePerformanceData()
        {
            if (currentPerformanceData != null)
            {
                StorePerformanceData();
            }

            currentPerformanceData = new PerformanceData(instance);
            Console.Write("Creating Performance Data record for {0}->{1}",
                          currentPerformanceData.StartTime,
                          currentPerformanceData.StopTime);

            UpdateTimerIntervals();
        }