08/01/26 22:28:23 rQLXMqaT0
システムモニタの作り方
まずはパフォーマンスモニタオブジェクトを用意(以下perfmon)
perfmon.addCounter(strings path,strings function)で計測するモニタ値を設定
strings path : 監視先のパス(参照:%SystemRoot%\system32\perfmon.msc)
strings function : 計測値変更毎に起動する関数の指定
##単に現時点での数値を表示するモニタでは便利だけれども
折れ線グラフなど時系列データでは不便なので空の関数でも指定しておく
perfmon.currentValue(strings path)でモニタ値を取得