namespace Mono.Profiler.Log {
public sealed class LogStreamHeader {
+
+ const int MinVersion = 13;
+ const int MaxVersion = 14;
const int Id = 0x4d505a01;
Version = new Version (reader.ReadByte (), reader.ReadByte ());
FormatVersion = reader.ReadByte ();
+
+ if (FormatVersion < MinVersion || FormatVersion > MaxVersion)
+ throw new LogException ($"Unsupported MLPD version {FormatVersion}. Should be >= {MinVersion} and <= {MaxVersion}.");
+
PointerSize = reader.ReadByte ();
StartupTime = reader.ReadUInt64 ();
TimerOverhead = reader.ReadInt32 ();