20 references to CollectionCount
HealthChecksSample (3)
GCInfoHealthCheck.cs (3)
61{ "Gen0Collections", GC.CollectionCount(0) }, 62{ "Gen1Collections", GC.CollectionCount(1) }, 63{ "Gen2Collections", GC.CollectionCount(2) },
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\RuntimeMetrics.cs (1)
165long collectionsFromThisGeneration = GC.CollectionCount(gen);
System.Diagnostics.TraceSource (4)
System\Diagnostics\Switch.cs (2)
76if (s_LastCollectionCount != GC.CollectionCount(2)) 92s_LastCollectionCount = GC.CollectionCount(2);
System\Diagnostics\TraceSource.cs (2)
47if (s_LastCollectionCount != GC.CollectionCount(2)) 63s_LastCollectionCount = GC.CollectionCount(2);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (3)
90_gen0GCCounter ??= new IncrementingPollingCounter("gen-0-gc-count", this, () => GC.CollectionCount(0)) { DisplayName = "Gen 0 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) }; 91_gen1GCCounter ??= new IncrementingPollingCounter("gen-1-gc-count", this, () => GC.CollectionCount(1)) { DisplayName = "Gen 1 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) }; 92_gen2GCCounter ??= new IncrementingPollingCounter("gen-2-gc-count", this, () => GC.CollectionCount(2)) { DisplayName = "Gen 2 GC Count", DisplayRateTimeScale = new TimeSpan(0, 1, 0) };
System.Runtime.Caching (6)
System\Runtime\Caching\CacheMemoryMonitor.cs (2)
48_gen2Count = GC.CollectionCount(2); 163int gen2Count = GC.CollectionCount(2);
System\Runtime\Caching\MemoryCacheStatistics.cs (2)
113int gen2Count = GC.CollectionCount(2); 207int gen2Count = GC.CollectionCount(2);
System\Runtime\Caching\PhysicalMemoryMonitor.Unix.cs (2)
31int ccount = GC.CollectionCount(0); 35ccount = GC.CollectionCount(0);
System.Runtime.InteropServices (3)
System\Runtime\InteropServices\HandleCollector.cs (3)
78(_gcCounts[collectionGeneration] == GC.CollectionCount(collectionGeneration)))) 87_gcCounts[i] = GC.CollectionCount(i); 118_gcCounts[i] = GC.CollectionCount(i);