public PerformanceCollector(string instance) { currentPerformanceData = null; logger = new Logger(); this.instance = instance; totalMemory = GetTotalMemory(); config = new AgentConfig(); InitCounters(); InitMonitors(); }
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(); }