예제 #1
0
 /// <summary>
 /// 已知IP,用户名,密码的构造函数
 /// </summary>
 /// <param name="ip">IP</param>
 /// <param name="username">用户名</param>
 /// <param name="password">密码</param>
 public ProcessCounterUnitTime(string ip, string username, string password, string processname)
 {
     wpr = new WmiPerfRawDataPerfProcProcess(ip, username, password);
     wa  = wpr.GetPerfRawDataPerfProcProcessByName(processname);
     FillDiskDriveInfo(processname);
 }
예제 #2
0
 public ProcessCounterUnitTime(string processname)
 {
     wpr = new WmiPerfRawDataPerfProcProcess();
     wa  = wpr.GetPerfRawDataPerfProcProcessByName(processname);
     FillDiskDriveInfo(processname);
 }