示例#1
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);
        }
        /// <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);
        }
示例#3
0
        /// <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();
        }
示例#4
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);
        }
示例#6
0
 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();
        }
示例#10
0
 public void Add(PerformanceCounterObject pCounter, PerformanceHistory <float> pHistory)
 {
     this.Push(new PerformanceItem(pCounter, pHistory));
 }
 public LogicalDiskPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity)
     : base(pPerformanceCounterObject, pCapacity)
 {
 }
示例#12
0
 public MemoryPerformanceChart(PerformanceCounterObject pPerformanceCounterObject, int pCapacity)
     : base(pPerformanceCounterObject, pCapacity)
 {
 }