コード例 #1
0
 public override string ToString()
 {
     return(ProcessName + "|" +
            PID.ToString() + "|" +
            UserName + "|" +
            CPUTime + "|" +
            NumBytes.ToString() + "|" +
            HandleCount.ToString() + "|" +
            ThreadCount.ToString() + "|" +
            CommandLineArgs);
 }
コード例 #2
0
 public string[] ToStringArray()
 {
     return(new string[] {
         ProcessShortName,
         PID.ToString(),
         UserName,
         CPUTime,
         new FileSystemHelper(null).BytesToReadableValue(NumBytes),
         HandleCount.ToString(),
         ThreadCount.ToString(),
         ProcessName + " " + CommandLineArgs
     });
 }
コード例 #3
0
 public string[] ForProcessAdvList()
 {
     return(new string[] { ProcessName, PID.ToString(), StartTime.ToShortTimeString(),
                           TotalProcessorTime.Duration().Hours.ToString() + ":" +
                           TotalProcessorTime.Duration().Minutes.ToString() + ":" +
                           TotalProcessorTime.Duration().Seconds.ToString() + "." +
                           TotalProcessorTime.Duration().Milliseconds.ToString()
                           , (WorkingSet64 / 1024) + " K", (PeakWorkingSet64 / 1024) + " K", HandleCount.ToString(), ThreadCount.ToString(), status, user, FileDescription });
 }