Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CommitDispatchConfiguration()

unsafe void System.Diagnostics.Tracing.EventPipeEventDispatcher.CommitDispatchConfiguration ( )
inlineprivate

Definition at line 81 of file EventPipeEventDispatcher.cs.

82 {
84 EventPipeInternal.Disable(m_sessionID);
85 if (m_subscriptions.Count <= 0)
86 {
87 return;
88 }
89 EventKeywords eventKeywords = EventKeywords.None;
90 EventLevel eventLevel = EventLevel.LogAlways;
91 foreach (EventListenerSubscription value in m_subscriptions.Values)
92 {
93 eventKeywords |= value.MatchAnyKeywords;
94 eventLevel = ((value.Level > eventLevel) ? value.Level : eventLevel);
95 }
96 EventPipeProviderConfiguration[] providers = new EventPipeProviderConfiguration[1]
97 {
98 new EventPipeProviderConfiguration("Microsoft-Windows-DotNETRuntime", (ulong)eventKeywords, (uint)eventLevel, null)
99 };
100 m_sessionID = EventPipeInternal.Enable(null, EventPipeSerializationFormat.NetTrace, 10u, providers);
101 System.Runtime.CompilerServices.Unsafe.SkipInit(out EventPipeSessionInfo eventPipeSessionInfo);
102 EventPipeInternal.GetSessionInfo(m_sessionID, &eventPipeSessionInfo);
104 m_syncTimeQPC = eventPipeSessionInfo.StartTimeStamp;
105 m_timeQPCFrequency = eventPipeSessionInfo.TimeStampFrequency;
107 }
readonly Dictionary< EventListener, EventListenerSubscription > m_subscriptions
static DateTime FromFileTimeUtc(long fileTime)
Definition DateTime.cs:718

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Diagnostics.Tracing.EventPipeInternal.Disable(), System.Diagnostics.Tracing.EventPipeInternal.Enable(), System.DateTime.FromFileTimeUtc(), System.Diagnostics.Tracing.EventPipeInternal.GetSessionInfo(), System.Diagnostics.Tracing.EventPipeEventDispatcher.m_sessionID, System.Diagnostics.Tracing.EventPipeEventDispatcher.m_subscriptions, System.Diagnostics.Tracing.EventPipeEventDispatcher.m_syncTimeQPC, System.Diagnostics.Tracing.EventPipeEventDispatcher.m_syncTimeUtc, System.Diagnostics.Tracing.EventPipeEventDispatcher.m_timeQPCFrequency, System.Diagnostics.Tracing.EventPipeEventDispatcher.StartDispatchTask(), System.Diagnostics.Tracing.EventPipeEventDispatcher.StopDispatchTask(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.

Referenced by System.Diagnostics.Tracing.EventPipeEventDispatcher.RemoveEventListener(), and System.Diagnostics.Tracing.EventPipeEventDispatcher.SendCommand().