[Mono.Profiler.Log] Support MLPD version 13
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogEnums.cs
index f9a125b5d16a8d011774c600d22bab15ed8ae0fb..9fc47b470f0898a3a86f8de8c04b9b5a162616c8 100644 (file)
@@ -17,7 +17,6 @@ namespace Mono.Profiler.Log {
                Heap = 6,
                Sample = 7,
                Runtime = 8,
-               Coverage = 9,
                Meta = 10,
 
                AllocationNoBacktrace = 0 << 4,
@@ -64,11 +63,6 @@ namespace Mono.Profiler.Log {
 
                RuntimeJitHelper = 1 << 4,
 
-               CoverageAssembly = 0 << 4,
-               CoverageMethod = 1 << 4,
-               CoverageStatement = 2 << 4,
-               CoverageClass = 3 << 4,
-
                MetaSynchronizationPoint = 0 << 4,
        }
 
@@ -138,16 +132,6 @@ namespace Mono.Profiler.Log {
                ExceptionHandling = 10,
        }
 
-       // mono/profiler/log.h : SAMPLE_*
-       public enum LogSampleHitType {
-               Cycles = 1,
-               Instructions = 2,
-               CacheMisses = 3,
-               CacheHits = 4,
-               Branches = 5,
-               BranchMisses = 6,
-       }
-
        // mono/metadata/profiler.h : MonoProfilerGCRootType
        [Flags]
        public enum LogHeapRootAttributes {
@@ -181,18 +165,19 @@ namespace Mono.Profiler.Log {
 
        // mono/metadata/profiler.h : MonoProfilerGCEvent
        public enum LogGCEvent {
-               Begin = 0,
-               MarkBegin = 1,
-               MarkEnd = 2,
-               ReclaimBegin = 3,
-               ReclaimEnd = 4,
-               End = 5,
                PreStopWorld = 6,
+               PreStopWorldLocked = 10,
                PostStopWorld = 7,
+               Begin = 0,
+               End = 5,
                PreStartWorld = 8,
                PostStartWorld = 9,
-               PreStopWorldLocked = 10,
                PostStartWorldUnlocked = 11,
+               // Following are v13 and older only
+               MarkBegin = 1,
+               MarkEnd = 2,
+               ReclaimBegin = 3,
+               ReclaimEnd = 4
        }
 
        // mono/metadata/mono-gc.h : MonoGCHandleType
@@ -209,4 +194,20 @@ namespace Mono.Profiler.Log {
                WorldStop = 1,
                WorldStart = 2,
        }
+
+       // mono/metadata/profiler.h : MonoProfilerSampleMode
+       public enum LogSampleMode {
+               None = 0,
+               Process = 1,
+               Real = 2,
+       }
+
+       // mono/profiler/log.h : MonoProfilerHeapshotMode
+       public enum LogHeapshotMode {
+               None = 0,
+               EveryMajor = 1,
+               OnDemand = 2,
+               Milliseconds = 3,
+               Collections = 4,
+       }
 }