PostStartWorld = 9,
PostStartWorldUnlocked = 11,
// Following are v13 and older only
+ [Obsolete ("This event is no longer produced.")]
MarkBegin = 1,
+ [Obsolete ("This event is no longer produced.")]
MarkEnd = 2,
+ [Obsolete ("This event is no longer produced.")]
ReclaimBegin = 3,
+ [Obsolete ("This event is no longer produced.")]
ReclaimEnd = 4
}
namespace Mono.Profiler.Log {
public sealed class LogStreamHeader {
- const int MinimumMLPDSupportedVersion = 13;
- const int MaximumMLPDSupportedVersion = 14;
+
+ const int MinVersion = 13;
+ const int MaxVersion = 14;
const int Id = 0x4d505a01;
Version = new Version (reader.ReadByte (), reader.ReadByte ());
FormatVersion = reader.ReadByte ();
- if (FormatVersion < MinimumMLPDSupportedVersion || FormatVersion > MaximumMLPDSupportedVersion)
- throw new LogException ($"Unsupported MLPD version {FormatVersion}. Should be >= {MinimumMLPDSupportedVersion} and <= {MaximumMLPDSupportedVersion}");
+ if (FormatVersion < MinVersion || FormatVersion > MaxVersion)
+ throw new LogException ($"Unsupported MLPD version {FormatVersion}. Should be >= {MinVersion} and <= {MaxVersion}.");
PointerSize = reader.ReadByte ();
StartupTime = reader.ReadUInt64 ();