src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (1)
44EventLevel level,
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (42)
241internal EventLevel m_level; // highest level enabled by any output dispatcher
330public bool IsEnabled(EventLevel level, EventKeywords keywords)
345public bool IsEnabled(EventLevel level, EventKeywords keywords, EventChannel channel)
510eventSource.SendCommand(null, EventProviderType.ETW, 0, command, true, EventLevel.LogAlways, EventKeywords.None, commandArguments);
1419Level = (EventLevel)metadata.Descriptor.Level,
2049Level = (EventLevel)metadata.Descriptor.Level,
2232EventLevel level = EventLevel.LogAlways;
2365private bool IsEnabledByDefault(int eventNum, bool enable, EventLevel currentLevel, EventKeywords currentMatchAnyKeyword)
2372EventLevel eventLevel = (EventLevel)metadata.Descriptor.Level;
2379private bool IsEnabledCommon(bool enabled, EventLevel currentLevel, EventKeywords currentMatchAnyKeyword,
2380EventLevel eventLevel, EventKeywords eventKeywords, EventChannel eventChannel)
2612EventLevel level, EventKeywords matchAnyKeyword,
3199manifest.StartEvent("EventSourceMessage", new EventAttribute(0) { Level = EventLevel.LogAlways, Task = (EventTask)0xFFFE });
4067/// (<see cref="EventLevel"/>) and bitfields (<see cref="EventKeywords"/>) to further restrict the set of
4185EventPipeEventDispatcher.Instance.SendCommand(this, EventCommand.Update, false, EventLevel.LogAlways, (EventKeywords)0);
4201public void EnableEvents(EventSource eventSource, EventLevel level)
4216public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)
4232public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, IDictionary<string, string?>? arguments)
4254eventSource.SendCommand(this, EventProviderType.None, 0, EventCommand.Update, false, EventLevel.LogAlways, EventKeywords.None, null);
4259EventPipeEventDispatcher.Instance.SendCommand(this, EventCommand.Update, false, EventLevel.LogAlways, EventKeywords.None);
4730EventListener? listener, EventProviderType eventProviderType, int perEventSourceSessionId, bool enable, EventLevel level, EventKeywords matchAnyKeyword)
4751internal EventLevel level;
4891public EventLevel Level
4893get => EventId <= 0 ? (_moreInfo?.Level ?? default) : (EventLevel)Metadata.Descriptor.Level;
4953public EventLevel Level;
5014Level = EventLevel.Informational;
5020public EventLevel Level { get; set; }
5890private static void AppendLevelName(StringBuilder? sb, EventLevel level)
5899EventLevel.LogAlways => nameof(EventLevel.LogAlways),
5900EventLevel.Critical => nameof(EventLevel.Critical),
5901EventLevel.Error => nameof(EventLevel.Error),
5902EventLevel.Warning => nameof(EventLevel.Warning),
5903EventLevel.Informational => nameof(EventLevel.Informational),
5904EventLevel.Verbose => nameof(EventLevel.Verbose),
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\FrameworkEventSource.cs (4)
98[Event(30, Level = EventLevel.Verbose, Keywords = Keywords.ThreadPool | Keywords.ThreadTransfer)]
112[Event(31, Level = EventLevel.Verbose, Keywords = Keywords.ThreadPool | Keywords.ThreadTransfer)]
134[Event(150, Level = EventLevel.Informational, Keywords = Keywords.ThreadTransfer, Task = Tasks.ThreadTransfer, Opcode = EventOpcode.Send)]
156[Event(151, Level = EventLevel.Informational, Keywords = Keywords.ThreadTransfer, Task = Tasks.ThreadTransfer, Opcode = EventOpcode.Receive)]
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.cs (34)
79[Event(90, Level = EventLevel.Informational, Message = Messages.ContentionLockCreated, Task = Tasks.Contention, Opcode = EventOpcode.Info, Version = 0, Keywords = Keywords.ContentionKeyword)]
82Debug.Assert(IsEnabled(EventLevel.Informational, Keywords.ContentionKeyword));
95[Event(81, Level = EventLevel.Informational, Message = Messages.ContentionStart, Task = Tasks.Contention, Opcode = EventOpcode.Start, Version = 2, Keywords = Keywords.ContentionKeyword)]
103Debug.Assert(IsEnabled(EventLevel.Informational, Keywords.ContentionKeyword));
119[Event(91, Level = EventLevel.Informational, Message = Messages.ContentionStop, Task = Tasks.Contention, Opcode = EventOpcode.Stop, Version = 1, Keywords = Keywords.ContentionKeyword)]
122Debug.Assert(IsEnabled(EventLevel.Informational, Keywords.ContentionKeyword));
131[Event(50, Level = EventLevel.Informational, Message = Messages.WorkerThread, Task = Tasks.ThreadPoolWorkerThread, Opcode = EventOpcode.Start, Version = 0, Keywords = Keywords.ThreadingKeyword)]
137if (IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
143[Event(51, Level = EventLevel.Informational, Message = Messages.WorkerThread, Task = Tasks.ThreadPoolWorkerThread, Opcode = EventOpcode.Stop, Version = 0, Keywords = Keywords.ThreadingKeyword)]
149if (IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
155[Event(57, Level = EventLevel.Informational, Message = Messages.WorkerThread, Task = Tasks.ThreadPoolWorkerThread, Opcode = Opcodes.Wait, Version = 0, Keywords = Keywords.ThreadingKeyword)]
162if (IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
168[Event(54, Level = EventLevel.Informational, Message = Messages.WorkerThreadAdjustmentSample, Task = Tasks.ThreadPoolWorkerThreadAdjustment, Opcode = Opcodes.Sample, Version = 0, Keywords = Keywords.ThreadingKeyword)]
173if (!IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
180[Event(55, Level = EventLevel.Informational, Message = Messages.WorkerThreadAdjustmentAdjustment, Task = Tasks.ThreadPoolWorkerThreadAdjustment, Opcode = Opcodes.Adjustment, Version = 0, Keywords = Keywords.ThreadingKeyword)]
187if (!IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
194[Event(56, Level = EventLevel.Verbose, Message = Messages.WorkerThreadAdjustmentStats, Task = Tasks.ThreadPoolWorkerThreadAdjustment, Opcode = Opcodes.Stats, Version = 0, Keywords = Keywords.ThreadingKeyword)]
208if (!IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword))
215[Event(63, Level = EventLevel.Verbose, Message = Messages.IOEnqueue, Task = Tasks.ThreadPool, Opcode = Opcodes.IOEnqueue, Version = 0, Keywords = Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword)]
229if (IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword))
249if (IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword))
257[Event(64, Level = EventLevel.Verbose, Message = Messages.IO, Task = Tasks.ThreadPool, Opcode = Opcodes.IODequeue, Version = 0, Keywords = Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword)]
270if (IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword))
289if (IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword | Keywords.ThreadTransferKeyword))
295[Event(60, Level = EventLevel.Verbose, Message = Messages.WorkingThreadCount, Task = Tasks.ThreadPoolWorkingThreadCount, Opcode = EventOpcode.Start, Version = 0, Keywords = Keywords.ThreadingKeyword)]
298if (!IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword))
309if (IsEnabled(EventLevel.Verbose, Keywords.ThreadingKeyword))
322[Event(65, Level = EventLevel.Verbose, Message = Messages.IO, Task = Tasks.ThreadPool, Opcode = Opcodes.IOPack, Version = 0, Keywords = Keywords.ThreadingKeyword)]
332[Event(59, Level = EventLevel.Informational, Message = Messages.MinMaxThreads, Task = Tasks.ThreadPoolMinMaxThreads, Opcode = EventOpcode.Info, Version = 0, Keywords = Keywords.ThreadingKeyword)]
340if (IsEnabled(EventLevel.Informational, Keywords.ThreadingKeyword))
346[Event(301, Level = EventLevel.Verbose, Message = Messages.WaitHandleWaitStart, Task = Tasks.WaitHandleWait, Opcode = EventOpcode.Start, Version = 0, Keywords = Keywords.WaitHandleKeyword)]
352Debug.Assert(IsEnabled(EventLevel.Verbose, Keywords.WaitHandleKeyword));
363[Event(302, Level = EventLevel.Verbose, Message = Messages.WaitHandleWaitStop, Task = Tasks.WaitHandleWait, Opcode = EventOpcode.Stop, Version = 0, Keywords = Keywords.WaitHandleKeyword)]
366Debug.Assert(IsEnabled(EventLevel.Verbose, Keywords.WaitHandleKeyword));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (32)
31if (IsEnabled(EventLevel.Informational, Keywords.TasksFlowActivityIds))
34TasksSetActivityIds = IsEnabled(EventLevel.Informational, Keywords.TasksSetActivityIds);
36Debug = IsEnabled(EventLevel.Informational, Keywords.Debug);
37DebugActivityId = IsEnabled(EventLevel.Informational, Keywords.DebugActivityId);
190Level = EventLevel.Informational, Keywords = Keywords.TaskTransfer | Keywords.Tasks,
197if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks))
240Level = EventLevel.Informational, Keywords = Keywords.Tasks,
246if (IsEnabled(EventLevel.Informational, Keywords.Tasks))
262Level = EventLevel.Informational, Keywords = Keywords.TaskStops,
268if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Tasks))
307Level = EventLevel.Informational, Keywords = Keywords.TaskTransfer | Keywords.Tasks,
313if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks))
354Level = EventLevel.Verbose, Keywords = Keywords.Tasks,
361if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks))
370Level = EventLevel.Verbose, Keywords = Keywords.TaskStops)]
374if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.TaskStops))
383Level = EventLevel.Verbose, Keywords = Keywords.Tasks)]
387if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks))
400Level = EventLevel.Informational, Keywords = Keywords.TaskTransfer | Keywords.Tasks)]
405if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer | Keywords.Tasks))
433Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalityOperation)]
436if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation))
461Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalityRelation)]
464if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation))
469Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalityOperation)]
472if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation))
477Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalitySynchronousWork)]
480if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
487Level = EventLevel.Informational, Keywords = Keywords.AsyncCausalitySynchronousWork)]
490if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
547if (IsEnabled() && IsEnabled(EventLevel.Warning, Keywords.AsyncMethod))
558[Event(27, Level = EventLevel.Warning, Keywords = Keywords.AsyncMethod)]