1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
7 namespace Mono.Profiler.Log {
9 // mono/profiler/log.h : TYPE_*
22 AllocationNoBacktrace = 0 << 4,
23 AllocationBacktrace = 1 << 4,
28 GCHandleCreationNoBacktrace = 4 << 4,
29 GCHandleDeletionNoBacktrace = 5 << 4,
30 GCHandleCreationBacktrace = 6 << 4,
31 GCHandleDeletionBacktrace = 7 << 4,
32 GCFinalizeBegin = 8 << 4,
33 GCFinalizeEnd = 9 << 4,
34 GCFinalizeObjectBegin = 10 << 4,
35 GCFinalizeObjectEnd = 11 << 4,
37 MetadataExtra = 0 << 4,
38 MetadataEndLoad = 2 << 4,
39 MetadataEndUnload = 4 << 4,
43 MethodLeaveExceptional = 3 << 4,
46 ExceptionThrowNoBacktrace = 0 << 7,
47 ExceptionThrowBacktrace = 1 << 7,
48 ExceptionClause = 1 << 4,
50 MonitorNoBacktrace = 0 << 7,
51 MonitorBacktrace = 1 << 7,
59 SampleUnmanagedSymbol = 1 << 4,
60 SampleUnmanagedBinary = 2 << 4,
61 SampleCounterDescriptions = 3 << 4,
62 SampleCounters = 4 << 4,
64 RuntimeJitHelper = 1 << 4,
66 MetaSynchronizationPoint = 0 << 4,
69 // mono/profiler/log.h : TYPE_*
70 enum LogMetadataType {
79 // mono/utils/mono-counters.h : MONO_COUNTER_*
80 public enum LogCounterType {
91 // mono/utils/mono-counters.h : MONO_COUNTER_*
92 public enum LogCounterSection {
104 // mono/utils/mono-counters.h : MONO_COUNTER_*
105 public enum LogCounterUnit {
110 Percentage = 4 << 24,
113 // mono/utils/mono-counters.h : MONO_COUNTER_*
114 public enum LogCounterVariance {
120 // mono/metadata/profiler.h : MonoProfilerCodeBufferType
121 public enum LogJitHelper {
124 MethodTrampoline = 2,
127 GenericsTrampoline = 5,
128 SpecificTrampoline = 6,
132 ExceptionHandling = 10,
135 // mono/metadata/profiler.h : MonoProfilerGCRootType
137 public enum LogHeapRootAttributes {
139 WeakReference = 2 << 8,
151 // mono/profiler/log.h : MonoProfilerMonitorEvent
152 public enum LogMonitorEvent {
158 // mono/metadata/metadata.h : MonoExceptionEnum
159 public enum LogExceptionClause {
166 // mono/metadata/profiler.h : MonoProfilerGCEvent
167 public enum LogGCEvent {
169 PreStopWorldLocked = 10,
175 PostStartWorldUnlocked = 11,
176 // Following are v13 and older only
183 // mono/metadata/mono-gc.h : MonoGCHandleType
184 public enum LogGCHandleType {
186 WeakTrackResurrection = 1,
191 // mono/profiler/log.h : MonoProfilerSyncPointType
192 public enum LogSynchronizationPoint {
198 // mono/metadata/profiler.h : MonoProfilerSampleMode
199 public enum LogSampleMode {
205 // mono/profiler/log.h : MonoProfilerHeapshotMode
206 public enum LogHeapshotMode {