[Mono.Profiler.Log] Support MLPD version 13
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogEnums.cs
index 52385963af286574df6f2ed7651242abfb0c03c0..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,17 +132,7 @@ 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 : MonoProfileGCRootType
+       // mono/metadata/profiler.h : MonoProfilerGCRootType
        [Flags]
        public enum LogHeapRootAttributes {
                Pinning = 1 << 8,
@@ -164,7 +148,7 @@ namespace Mono.Profiler.Log {
                TypeMask = 0xff,
        }
 
-       // mono/metadata/profiler.h : MonoProfilerMonitorEvent
+       // mono/profiler/log.h : MonoProfilerMonitorEvent
        public enum LogMonitorEvent {
                Contention = 1,
                Done = 2,
@@ -179,23 +163,24 @@ namespace Mono.Profiler.Log {
                Fault = 4,
        }
 
-       // mono/metadata/profiler.h : MonoGCEvent
+       // 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/sgen/gc-internal-agnostic.h : GCHandleType
+       // mono/metadata/mono-gc.h : MonoGCHandleType
        public enum LogGCHandleType {
                Weak = 0,
                WeakTrackResurrection = 1,
@@ -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,
+       }
 }