コード例 #1
0
ファイル: JobObject.cs プロジェクト: erikma/BuildXL
 /// <nodoc />
 public static AccountingInformation Deserialize(BuildXLReader reader)
 {
     return(new AccountingInformation()
     {
         IO = IOCounters.Deserialize(reader),
         UserTime = reader.ReadTimeSpan(),
         KernelTime = reader.ReadTimeSpan(),
         MemoryCounters = ProcessMemoryCounters.Deserialize(reader),
         NumberOfProcesses = reader.ReadUInt32()
     });
 }
コード例 #2
0
        /// <nodoc />
        public static ReportedProcess Deserialize(BuildXLReader reader)
        {
            var reportedProcess = new ReportedProcess(
                processId: reader.ReadUInt32(),
                path:      reader.ReadString(),
                args:      reader.ReadString())
            {
                CreationTime    = reader.ReadDateTime(),
                ExitTime        = reader.ReadDateTime(),
                KernelTime      = reader.ReadTimeSpan(),
                UserTime        = reader.ReadTimeSpan(),
                IOCounters      = IOCounters.Deserialize(reader),
                ExitCode        = reader.ReadUInt32(),
                ParentProcessId = reader.ReadUInt32()
            };

            return(reportedProcess);
        }