Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2017-09-19 21:13:33 +0300
committerRodrigo Moya <rodrigo@gnome.org>2017-09-19 21:29:55 +0300
commitb6bfa9f26d8b65f292649ee7b8b2040b9e4722ac (patch)
tree86994643cf5b2fc47f322dfe1afba92d2013dd1a /mcs/class/Mono.Profiler.Log
parentde1633042b052df25b407007d9cb772319eb1895 (diff)
[Mono.Profiler.Log] Styling fixes
Diffstat (limited to 'mcs/class/Mono.Profiler.Log')
-rw-r--r--mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs4
-rw-r--r--mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogStreamHeader.cs9
2 files changed, 9 insertions, 4 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs
index 9fc47b470f0..a204195730d 100644
--- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs
+++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs
@@ -174,9 +174,13 @@ namespace Mono.Profiler.Log {
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
}
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogStreamHeader.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogStreamHeader.cs
index 494044d60ce..44575028a7a 100644
--- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogStreamHeader.cs
+++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogStreamHeader.cs
@@ -7,8 +7,9 @@ using System;
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;
@@ -44,8 +45,8 @@ namespace Mono.Profiler.Log {
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 ();