69 instantiations of PollingCounter
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEventSource.cs (3)
100_totalRequestsCounter ??= new PollingCounter("total-requests", this, () => Volatile.Read(ref _totalRequests)) 105_currentRequestsCounter ??= new PollingCounter("current-requests", this, () => Volatile.Read(ref _currentRequests)) 110_failedRequestsCounter ??= new PollingCounter("failed-requests", this, () => Volatile.Read(ref _failedRequests))
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionsEventSource.cs (4)
88_connectionsStartedCounter ??= new PollingCounter("connections-started", this, () => Volatile.Read(ref _connectionsStarted)) 92_connectionsStoppedCounter ??= new PollingCounter("connections-stopped", this, () => Volatile.Read(ref _connectionsStopped)) 96_connectionsTimedOutCounter ??= new PollingCounter("connections-timed-out", this, () => Volatile.Read(ref _connectionsTimedOut)) 100_currentConnectionsCounter ??= new PollingCounter("current-connections", this, () => Volatile.Read(ref _currentConnections))
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Infrastructure\KestrelEventSource.cs (8)
314_totalConnectionsCounter ??= new PollingCounter("total-connections", this, () => Volatile.Read(ref _totalConnections)) 325_totalTlsHandshakesCounter ??= new PollingCounter("total-tls-handshakes", this, () => Volatile.Read(ref _totalTlsHandshakes)) 330_currentTlsHandshakesCounter ??= new PollingCounter("current-tls-handshakes", this, () => Volatile.Read(ref _currentTlsHandshakes)) 335_failedTlsHandshakesCounter ??= new PollingCounter("failed-tls-handshakes", this, () => Volatile.Read(ref _failedTlsHandshakes)) 340_currentConnectionsCounter ??= new PollingCounter("current-connections", this, () => Volatile.Read(ref _currentConnections)) 345_connectionQueueLengthCounter ??= new PollingCounter("connection-queue-length", this, () => Volatile.Read(ref _connectionQueueLength)) 350_httpRequestQueueLengthCounter ??= new PollingCounter("request-queue-length", this, () => Volatile.Read(ref _httpRequestQueueLength)) 355_currrentUpgradedHttpRequestsCounter ??= new PollingCounter("current-upgraded-requests", this, () => Volatile.Read(ref _currentUpgradedHttpRequests))
Microsoft.Extensions.Caching.Hybrid (11)
Internal\HybridCacheEventSource.cs (11)
208new PollingCounter("total-local-cache-hits", this, () => Volatile.Read(ref _totalLocalCacheHit)) { DisplayName = "Total Local Cache Hits" }, 209new PollingCounter("total-local-cache-misses", this, () => Volatile.Read(ref _totalLocalCacheMiss)) { DisplayName = "Total Local Cache Misses" }, 210new PollingCounter("total-distributed-cache-hits", this, () => Volatile.Read(ref _totalDistributedCacheHit)) { DisplayName = "Total Distributed Cache Hits" }, 211new PollingCounter("total-distributed-cache-misses", this, () => Volatile.Read(ref _totalDistributedCacheMiss)) { DisplayName = "Total Distributed Cache Misses" }, 212new PollingCounter("total-data-query", this, () => Volatile.Read(ref _totalUnderlyingDataQuery)) { DisplayName = "Total Data Queries" }, 213new PollingCounter("current-data-query", this, () => Volatile.Read(ref _currentUnderlyingDataQuery)) { DisplayName = "Current Data Queries" }, 214new PollingCounter("current-distributed-cache-fetches", this, () => Volatile.Read(ref _currentDistributedFetch)) { DisplayName = "Current Distributed Cache Fetches" }, 215new PollingCounter("total-local-cache-writes", this, () => Volatile.Read(ref _totalLocalCacheWrite)) { DisplayName = "Total Local Cache Writes" }, 216new PollingCounter("total-distributed-cache-writes", this, () => Volatile.Read(ref _totalDistributedCacheWrite)) { DisplayName = "Total Distributed Cache Writes" }, 217new PollingCounter("total-stampede-joins", this, () => Volatile.Read(ref _totalStampedeJoin)) { DisplayName = "Total Stampede Joins" }, 218new PollingCounter("total-tag-invalidations", this, () => Volatile.Read(ref _totalTagInvalidations)) { DisplayName = "Total Tag Invalidations" },
System.Net.Http (6)
System\Net\Http\HttpTelemetry.AnyOS.cs (6)
51_startedRequestsCounter ??= new PollingCounter("requests-started", this, () => Interlocked.Read(ref _startedRequests)) 67_failedRequestsCounter ??= new PollingCounter("requests-failed", this, () => Interlocked.Read(ref _failedRequests)) 82_currentRequestsCounter ??= new PollingCounter("current-requests", this, () => -Interlocked.Read(ref _stoppedRequests) + Interlocked.Read(ref _startedRequests)) 87_totalHttp11ConnectionsCounter ??= new PollingCounter("http11-connections-current-total", this, () => Interlocked.Read(ref _openedHttp11Connections)) 92_totalHttp20ConnectionsCounter ??= new PollingCounter("http20-connections-current-total", this, () => Interlocked.Read(ref _openedHttp20Connections)) 97_totalHttp30ConnectionsCounter ??= new PollingCounter("http30-connections-current-total", this, () => Interlocked.Read(ref _openedHttp30Connections))
System.Net.NameResolution (2)
System\Net\NameResolutionTelemetry.cs (2)
33_lookupsRequestedCounter ??= new PollingCounter("dns-lookups-requested", this, () => Interlocked.Read(ref _lookupsRequested)) 39_currentLookupsCounter ??= new PollingCounter("current-dns-lookups", this, () => Interlocked.Read(ref _currentLookups))
System.Net.Security (8)
System\Net\Security\NetSecurityTelemetry.cs (8)
59_totalTlsHandshakesCounter ??= new PollingCounter("total-tls-handshakes", this, () => Interlocked.Read(ref _finishedTlsHandshakes)) 64_currentTlsHandshakesCounter ??= new PollingCounter("current-tls-handshakes", this, () => -Interlocked.Read(ref _finishedTlsHandshakes) + Interlocked.Read(ref _startedTlsHandshakes)) 69_failedTlsHandshakesCounter ??= new PollingCounter("failed-tls-handshakes", this, () => Interlocked.Read(ref _failedTlsHandshakes)) 74_sessionsOpenCounter ??= new PollingCounter("all-tls-sessions-open", this, () => Interlocked.Read(ref _sessionsOpen)) 79_sessionsOpenTls10Counter ??= new PollingCounter("tls10-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls10)) 84_sessionsOpenTls11Counter ??= new PollingCounter("tls11-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls11)) 89_sessionsOpenTls12Counter ??= new PollingCounter("tls12-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls12)) 94_sessionsOpenTls13Counter ??= new PollingCounter("tls13-sessions-open", this, () => Interlocked.Read(ref _sessionsOpenTls13))
System.Net.Sockets (7)
System\Net\Sockets\SocketsTelemetry.cs (7)
273_currentOutgoingConnectAttemptsCounter ??= new PollingCounter("current-outgoing-connect-attempts", this, () => Interlocked.Read(ref _currentOutgoingConnectAttempts)) 277_outgoingConnectionsEstablishedCounter ??= new PollingCounter("outgoing-connections-established", this, () => Interlocked.Read(ref _outgoingConnectionsEstablished)) 281_incomingConnectionsEstablishedCounter ??= new PollingCounter("incoming-connections-established", this, () => Interlocked.Read(ref _incomingConnectionsEstablished)) 285_bytesReceivedCounter ??= new PollingCounter("bytes-received", this, () => Interlocked.Read(ref _bytesReceived)) 289_bytesSentCounter ??= new PollingCounter("bytes-sent", this, () => Interlocked.Read(ref _bytesSent)) 293_datagramsReceivedCounter ??= new PollingCounter("datagrams-received", this, () => Interlocked.Read(ref _datagramsReceived)) 297_datagramsSentCounter ??= new PollingCounter("datagrams-sent", this, () => Interlocked.Read(ref _datagramsSent))
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (18)
79_cpuTimeCounter ??= new PollingCounter("cpu-usage", this, RuntimeEventSourceHelper.GetCpuUsage) { DisplayName = "CPU Usage", DisplayUnits = "%" }; 80_workingSetCounter ??= new PollingCounter("working-set", this, () => ((double)Environment.WorkingSet / 1_000_000)) { DisplayName = "Working Set", DisplayUnits = "MB" }; 81_gcHeapSizeCounter ??= new PollingCounter("gc-heap-size", this, () => ((double)GC.GetTotalMemory(false) / 1_000_000)) { DisplayName = "GC Heap Size", DisplayUnits = "MB" }; 85_gen0BudgetCounter ??= new PollingCounter("gen-0-gc-budget", this, () => GC.GetGenerationBudget(0) / 1_000_000) { DisplayName = "Gen 0 GC Budget", DisplayUnits = "MB" }; 86_threadPoolThreadCounter ??= new PollingCounter("threadpool-thread-count", this, () => ThreadPool.ThreadCount) { DisplayName = "ThreadPool Thread Count" }; 88_threadPoolQueueCounter ??= new PollingCounter("threadpool-queue-length", this, () => ThreadPool.PendingWorkItemCount) { DisplayName = "ThreadPool Queue Length" }; 91_timerCounter ??= new PollingCounter("active-timer-count", this, () => Timer.ActiveCount) { DisplayName = "Number of Active Timers" }; 92_fragmentationCounter ??= new PollingCounter("gc-fragmentation", this, () => { 97_committedCounter ??= new PollingCounter("gc-committed", this, () => ((double)GC.GetGCMemoryInfo().TotalCommittedBytes / 1_000_000)) { DisplayName = "GC Committed Bytes", DisplayUnits = "MB" }; 99_gcTimeCounter ??= new PollingCounter("time-in-gc", this, () => GC.GetLastGCPercentTimeInGC()) { DisplayName = "% Time in GC since last GC", DisplayUnits = "%" }; 101_gen0SizeCounter ??= new PollingCounter("gen-0-size", this, () => GC.GetGenerationSize(0)) { DisplayName = "Gen 0 Size", DisplayUnits = "B" }; 102_gen1SizeCounter ??= new PollingCounter("gen-1-size", this, () => GC.GetGenerationSize(1)) { DisplayName = "Gen 1 Size", DisplayUnits = "B" }; 103_gen2SizeCounter ??= new PollingCounter("gen-2-size", this, () => GC.GetGenerationSize(2)) { DisplayName = "Gen 2 Size", DisplayUnits = "B" }; 104_lohSizeCounter ??= new PollingCounter("loh-size", this, () => GC.GetGenerationSize(3)) { DisplayName = "LOH Size", DisplayUnits = "B" }; 105_pohSizeCounter ??= new PollingCounter("poh-size", this, () => GC.GetGenerationSize(4)) { DisplayName = "POH (Pinned Object Heap) Size", DisplayUnits = "B" }; 106_assemblyCounter ??= new PollingCounter("assembly-count", this, () => Reflection.Assembly.GetAssemblyCount()) { DisplayName = "Number of Assemblies Loaded" }; 108_ilBytesJittedCounter ??= new PollingCounter("il-bytes-jitted", this, () => Runtime.JitInfo.GetCompiledILBytes()) { DisplayName = "IL Bytes Jitted", DisplayUnits = "B" }; 109_methodsJittedCounter ??= new PollingCounter("methods-jitted-count", this, () => Runtime.JitInfo.GetCompiledMethodCount()) { DisplayName = "Number of Methods Jitted" };
System.Runtime.Caching (2)
System\Runtime\Caching\Counters.cs (2)
93_counters[(int)CounterName.HitRatio] = new PollingCounter("hit-ratio", this, 115return new PollingCounter(name, this, getValue)
61 references to PollingCounter
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEventSource.cs (3)
14private PollingCounter? _totalRequestsCounter; 15private PollingCounter? _failedRequestsCounter; 16private PollingCounter? _currentRequestsCounter;
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionsEventSource.cs (4)
13private PollingCounter? _connectionsStartedCounter; 14private PollingCounter? _connectionsStoppedCounter; 15private PollingCounter? _connectionsTimedOutCounter; 16private PollingCounter? _currentConnectionsCounter;
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Infrastructure\KestrelEventSource.cs (8)
23private PollingCounter? _totalConnectionsCounter; 24private PollingCounter? _currentConnectionsCounter; 25private PollingCounter? _totalTlsHandshakesCounter; 26private PollingCounter? _currentTlsHandshakesCounter; 27private PollingCounter? _failedTlsHandshakesCounter; 28private PollingCounter? _connectionQueueLengthCounter; 29private PollingCounter? _httpRequestQueueLengthCounter; 30private PollingCounter? _currrentUpgradedHttpRequestsCounter;
mscorlib (1)
mscorlib.cs (1)
72[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.PollingCounter))]
netstandard (1)
netstandard.cs (1)
741[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.PollingCounter))]
System.Diagnostics.Tracing (1)
src\runtime\artifacts\obj\System.Diagnostics.Tracing\Release\net12.0\System.Diagnostics.Tracing.Forwards.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.PollingCounter))]
System.Net.Http (6)
System\Net\Http\HttpTelemetry.AnyOS.cs (6)
14private PollingCounter? _startedRequestsCounter; 15private PollingCounter? _currentRequestsCounter; 16private PollingCounter? _failedRequestsCounter; 17private PollingCounter? _totalHttp11ConnectionsCounter; 18private PollingCounter? _totalHttp20ConnectionsCounter; 19private PollingCounter? _totalHttp30ConnectionsCounter;
System.Net.NameResolution (2)
System\Net\NameResolutionTelemetry.cs (2)
21private PollingCounter? _lookupsRequestedCounter; 22private PollingCounter? _currentLookupsCounter;
System.Net.Security (8)
System\Net\Security\NetSecurityTelemetry.cs (8)
24private PollingCounter? _totalTlsHandshakesCounter; 25private PollingCounter? _currentTlsHandshakesCounter; 26private PollingCounter? _failedTlsHandshakesCounter; 27private PollingCounter? _sessionsOpenCounter; 28private PollingCounter? _sessionsOpenTls10Counter; 29private PollingCounter? _sessionsOpenTls11Counter; 30private PollingCounter? _sessionsOpenTls12Counter; 31private PollingCounter? _sessionsOpenTls13Counter;
System.Net.Sockets (7)
System\Net\Sockets\SocketsTelemetry.cs (7)
19private PollingCounter? _currentOutgoingConnectAttemptsCounter; 20private PollingCounter? _outgoingConnectionsEstablishedCounter; 21private PollingCounter? _incomingConnectionsEstablishedCounter; 22private PollingCounter? _bytesReceivedCounter; 23private PollingCounter? _bytesSentCounter; 24private PollingCounter? _datagramsReceivedCounter; 25private PollingCounter? _datagramsSentCounter;
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\PollingCounter.cs (1)
22/// Initializes a new instance of the <see cref="PollingCounter"/> class.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (18)
24private PollingCounter? _gcHeapSizeCounter; 28private PollingCounter? _gen0BudgetCounter; 29private PollingCounter? _cpuTimeCounter; 30private PollingCounter? _workingSetCounter; 31private PollingCounter? _threadPoolThreadCounter; 33private PollingCounter? _threadPoolQueueCounter; 36private PollingCounter? _timerCounter; 37private PollingCounter? _fragmentationCounter; 38private PollingCounter? _committedCounter; 40private PollingCounter? _gcTimeCounter; 42private PollingCounter? _gen0SizeCounter; 43private PollingCounter? _gen1SizeCounter; 44private PollingCounter? _gen2SizeCounter; 45private PollingCounter? _lohSizeCounter; 46private PollingCounter? _pohSizeCounter; 47private PollingCounter? _assemblyCounter; 48private PollingCounter? _ilBytesJittedCounter; 49private PollingCounter? _methodsJittedCounter;
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
113private PollingCounter CreatePollingCounter(string name, string displayName, Func<double> getValue)