128 Name =
".NET Counter Poller"
209 int num =
int.MaxValue;
230 if (num ==
int.MaxValue)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
void Add(TKey key, TValue value)
int _pollingIntervalInMilliseconds
readonly List< DiagnosticCounter > _counters
DateTime _timeStampSinceCollectionStarted
static Thread s_pollingThread
static CounterGroup GetCounterGroup(EventSource eventSource)
CounterGroup(EventSource eventSource)
void OnEventSourceCommand(object sender, EventCommandEventArgs e)
void RegisterCommandCallback()
void Remove(DiagnosticCounter eventCounter)
static List< CounterGroup > s_counterGroupEnabledList
static void PollForValues()
static AutoResetEvent s_pollingThreadSleepEvent
void EnableTimer(float pollingIntervalInSeconds)
DateTime _nextPollingTimeStamp
static WeakReference< CounterGroup >[] s_counterGroups
static void EnsureEventSourceIndexAvailable(int eventSourceIndex)
readonly EventSource _eventSource
static readonly object s_counterGroupLock
void Add(DiagnosticCounter eventCounter)
IDictionary< string, string?>? Arguments
static int EventSourceIndex(EventSource eventSource)
static byte Min(byte val1, byte val2)
static double Ceiling(double a)
static byte Max(byte val1, byte val2)
static unsafe DateTime UtcNow
static TimeSpan FromMilliseconds(double value)