16 instantiations of IncrementingPollingCounter
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEventSource.cs (1)
94_requestsPerSecondCounter ??= new IncrementingPollingCounter("requests-per-second", this, () => Volatile.Read(ref _totalRequests))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelEventSource.cs (2)
308_connectionsPerSecondCounter ??= new IncrementingPollingCounter("connections-per-second", this, () => Volatile.Read(ref _totalConnections)) 319_tlsHandshakesPerSecondCounter ??= new IncrementingPollingCounter("tls-handshakes-per-second", this, () => Volatile.Read(ref _totalTlsHandshakes))
System.Net.Http (2)
System\Net\Http\HttpTelemetry.AnyOS.cs (2)
57_startedRequestsPerSecondCounter ??= new IncrementingPollingCounter("requests-started-rate", this, () => Interlocked.Read(ref _startedRequests)) 73_failedRequestsPerSecondCounter ??= new IncrementingPollingCounter("requests-failed-rate", this, () => Interlocked.Read(ref _failedRequests))
System.Net.Security (1)
System\Net\Security\NetSecurityTelemetry.cs (1)
53_tlsHandshakeRateCounter ??= new IncrementingPollingCounter("tls-handshake-rate", this, () => Interlocked.Read(ref _finishedTlsHandshakes))
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (9)
82_gen0GCCounter ??= new IncrementingPollingCounter("gen-0-gc-count", this, () => GC.CollectionCount(0)) { DisplayName = "Gen 0 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) }; 83_gen1GCCounter ??= new IncrementingPollingCounter("gen-1-gc-count", this, () => GC.CollectionCount(1)) { DisplayName = "Gen 1 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) }; 84_gen2GCCounter ??= new IncrementingPollingCounter("gen-2-gc-count", this, () => GC.CollectionCount(2)) { DisplayName = "Gen 2 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) }; 87_monitorContentionCounter ??= new IncrementingPollingCounter("monitor-lock-contention-count", this, () => Monitor.LockContentionCount) { DisplayName = "Monitor Lock Contention Count", DisplayRateTimeScale = new TimeSpan(0, 0, 1) }; 89_completedItemsCounter ??= new IncrementingPollingCounter("threadpool-completed-items-count", this, () => ThreadPool.CompletedWorkItemCount) { DisplayName = "ThreadPool Completed Work Item Count", DisplayRateTimeScale = new TimeSpan(0, 0, 1) }; 90_allocRateCounter ??= new IncrementingPollingCounter("alloc-rate", this, () => GC.GetTotalAllocatedBytes()) { DisplayName = "Allocation Rate", DisplayUnits = "B", DisplayRateTimeScale = new TimeSpan(0, 0, 1) }; 98_exceptionCounter ??= new IncrementingPollingCounter("exception-count", this, () => Exception.GetExceptionCount()) { DisplayName = "Exception Count", DisplayRateTimeScale = new TimeSpan(0, 0, 1) }; 100_totalGcPauseTimeCounter ??= new IncrementingPollingCounter("total-pause-time-by-gc", this, () => GC.GetTotalPauseDuration().TotalMilliseconds) { DisplayName = "Time paused by GC", DisplayUnits = "ms" }; 110_jitTimeCounter ??= new IncrementingPollingCounter("time-in-jit", this, () => Runtime.JitInfo.GetCompilationTime().TotalMilliseconds) { DisplayName = "Time spent in JIT", DisplayUnits = "ms", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };
System.Runtime.Caching (1)
System\Runtime\Caching\Counters.cs (1)
79_counters[(int)CounterName.Turnover] = new IncrementingPollingCounter("turnover", this,
24 references to IncrementingPollingCounter
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEventSource.cs (1)
13private IncrementingPollingCounter? _requestsPerSecondCounter;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelEventSource.cs (2)
21private IncrementingPollingCounter? _connectionsPerSecondCounter; 22private IncrementingPollingCounter? _tlsHandshakesPerSecondCounter;
mscorlib (1)
mscorlib.cs (1)
71[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.IncrementingPollingCounter))]
netstandard (1)
netstandard.cs (1)
739[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.IncrementingPollingCounter))]
System.Diagnostics.Tracing (1)
src\runtime\artifacts\obj\System.Diagnostics.Tracing\Release\net12.0\System.Diagnostics.Tracing.Forwards.cs (1)
30[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Tracing.IncrementingPollingCounter))]
System.Net.Http (2)
System\Net\Http\HttpTelemetry.AnyOS.cs (2)
12private IncrementingPollingCounter? _startedRequestsPerSecondCounter; 13private IncrementingPollingCounter? _failedRequestsPerSecondCounter;
System.Net.Security (1)
System\Net\Security\NetSecurityTelemetry.cs (1)
23private IncrementingPollingCounter? _tlsHandshakeRateCounter;
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\CounterGroup.cs (5)
203if (diagnosticCounter is IncrementingPollingCounter pollingCounter) 218else if (counter is IncrementingPollingCounter ipCounter) 299private static List<IncrementingPollingCounter> s_needsResetIncrementingPollingCounters = []; 310List<IncrementingPollingCounter>? countersToReset = null; 339foreach (IncrementingPollingCounter counter in countersToReset)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingPollingCounter.cs (1)
23/// Initializes a new instance of the <see cref="IncrementingPollingCounter"/> class.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (9)
25private IncrementingPollingCounter? _gen0GCCounter; 26private IncrementingPollingCounter? _gen1GCCounter; 27private IncrementingPollingCounter? _gen2GCCounter; 32private IncrementingPollingCounter? _monitorContentionCounter; 34private IncrementingPollingCounter? _completedItemsCounter; 35private IncrementingPollingCounter? _allocRateCounter; 39private IncrementingPollingCounter? _exceptionCounter; 41private IncrementingPollingCounter? _totalGcPauseTimeCounter; 50private IncrementingPollingCounter? _jitTimeCounter;