/// <summary> /// 追加 /// </summary> public override void Add() { Debug.WriteLine("m_PerformanceList.Count = " + Items.Count.ToString()); Process[] _Process = Process.GetProcessesByName(m_InstanceName); Debug.WriteLine("_Process.Length = " + _Process.Length.ToString()); if (!Running) { return; } //------------------------ // 値を取得し、履歴に登録 //------------------------ ArrayList _ValueList = new ArrayList(); for (int i = 0; i < Items.Count; i++) { PerformanceCounterObject _PerformanceCounterObject = Items.GetItem(i).Counter; PerformanceHistory <float> _PerformanceHistory = Items.GetItem(i).History; float value = _PerformanceCounterObject.NextValue(); _PerformanceHistory.Add(value); _ValueList.Add(value); } // ログ出力 PrintLog(_ValueList); }
/// <summary> /// 追加 /// </summary> public override void Add() { if (!Running) { return; } //------------------------ // 値を取得し、履歴に登録 //------------------------ ArrayList _ValueList = new ArrayList(); float _MaxValue = 10.0F; for (int i = 0; i < Items.Count; i++) { PerformanceCounterObject _PerformanceCounterObject = Items[i].Counter; PerformanceHistory <float> _PerformanceHistory = Items[i].History; float value = _PerformanceCounterObject.NextValue(); _PerformanceHistory.Add(value); _ValueList.Add(value); if (_PerformanceHistory.Max > _MaxValue) { _MaxValue = _PerformanceHistory.Max; } } this.ChartAreas[0].AxisY.Maximum = _MaxValue; this.ChartAreas[0].AxisY.Interval = (int)(_MaxValue / 10); // ログ出力 PrintLog(_ValueList); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="pPerformanceCounterObject"></param> /// <param name="pCapacity"></param> public PerformanceChartList(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) : base() { m_Items.Add(new PerformanceItem(pPerformanceCounterObject, new PerformanceHistory <float>(pCapacity))); Initialization(); }
/// <summary> /// 追加 /// </summary> public override void Add() { //------------------------ // 値を取得し、履歴に登録 //------------------------ ArrayList _ValueList = new ArrayList(); for (int i = 0; i < Items.Count; i++) { PerformanceCounterObject _PerformanceCounterObject = Items[i].Counter; PerformanceHistory <float> _PerformanceHistory = Items[i].History; float value = this.TotalVisibleMemorySize - _PerformanceCounterObject.NextValue(); _PerformanceHistory.Add(value); _ValueList.Add(value); } // ログ出力 PrintLog(_ValueList); }
/// <summary> /// 追加 /// </summary> public override void Add() { if (!Running) { return; } //------------------------ // 値を取得し、履歴に登録 //------------------------ ArrayList _ValueList = new ArrayList(); for (int i = 0; i < Items.Count; i++) { PerformanceCounterObject _PerformanceCounterObject = Items.GetItem(i).Counter; PerformanceHistory <float> _PerformanceHistory = Items.GetItem(i).History; float value = _PerformanceCounterObject.NextValue(); _PerformanceHistory.Add(value); _ValueList.Add(value); } // ログ出力 PrintLog(_ValueList); }
public PerformanceItem(PerformanceCounterObject pCounter, PerformanceHistory <float> pHistory) { m_Counter = pCounter; m_History = pHistory; }
public NetworkPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) : base(pPerformanceCounterObject, pCapacity) { }
public ProcessorPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) : base(pPerformanceCounterObject, pCapacity) { }
/// <summary> /// コンストラクタ /// </summary> /// <param name="pPerformanceCounterObject"></param> /// <param name="pCapacity"></param> public PerformanceChartStack(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) { m_Items.Push(new PerformanceItem(pPerformanceCounterObject, new PerformanceHistory <float>(pCapacity))); Initialization(); }
public void Add(PerformanceCounterObject pCounter, PerformanceHistory <float> pHistory) { this.Push(new PerformanceItem(pCounter, pHistory)); }
public LogicalDiskPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) : base(pPerformanceCounterObject, pCapacity) { }
public MemoryPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity) : base(pPerformanceCounterObject, pCapacity) { }