[profiler] Introduce runtime control API.
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogEnums.cs
index 52385963af286574df6f2ed7651242abfb0c03c0..0dbc72eb003e86e24f6447831ccfb8bd08f06b56 100644 (file)
@@ -138,17 +138,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 +154,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 +169,19 @@ 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,
        }
 
-       // mono/sgen/gc-internal-agnostic.h : GCHandleType
+       // mono/metadata/mono-gc.h : MonoGCHandleType
        public enum LogGCHandleType {
                Weak = 0,
                WeakTrackResurrection = 1,
@@ -209,4 +195,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,
+       }
 }