コード例 #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
        public static bool Deserialize(BuildXLReader reader, out ProcessPipHistoricPerfData result)
        {
            Contract.Requires(reader != null);
            byte timeToLive    = reader.ReadByte();
            byte newTimeToLive = (byte)(timeToLive - 1);

            result = new ProcessPipHistoricPerfData(
                newTimeToLive,
                reader.ReadUInt32(),
                ProcessMemoryCounters.Deserialize(reader),
                reader.ReadUInt16(),
                reader.ReadUInt32());
            return(newTimeToLive > 0);
        }
コード例 #3
0
        public static bool Deserialize(BuildXLReader reader, out ProcessPipHistoricPerfData result)
        {
            Contract.Requires(reader != null);
            byte timeToLive       = reader.ReadByte();
            byte newTimeToLive    = (byte)(timeToLive - 1);
            uint exeDurationMs    = reader.ReadUInt32();
            uint maxExeDurationMs = reader.ReadUInt32();
            uint runDurationMs    = reader.ReadUInt32();
            ProcessMemoryCounters memoryCounters = ProcessMemoryCounters.Deserialize(reader);
            ushort processorsInPercents          = reader.ReadUInt16();
            uint   diskIOInMB = reader.ReadUInt32();

            result = new ProcessPipHistoricPerfData(
                newTimeToLive,
                exeDurationMs,
                maxExeDurationMs,
                runDurationMs,
                memoryCounters,
                processorsInPercents,
                diskIOInMB);

            return(newTimeToLive > 0);
        }