/// <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() }); }
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); }
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); }