/// <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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
        /// <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);
        }