3 instantiations of MemoryPoolMetrics
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (1)
24return new PinnedBlockMemoryPool(owner: owner, metrics: meterFactory != null ? new MemoryPoolMetrics(meterFactory) : null);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
PinnedBlockMemoryPoolFactoryTests.cs (1)
128new MemoryPoolMetrics(new TestMeterFactory()),
PinnedBlockMemoryPoolTests.cs (1)
437return new PinnedBlockMemoryPool(owner: owner, metrics: new MemoryPoolMetrics(meterFactory));
13 references to MemoryPoolMetrics
Microsoft.AspNetCore.Server.Kestrel (1)
WebHostBuilderKestrelExtensions.cs (1)
90services.AddSingleton<MemoryPoolMetrics>();
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\PinnedBlockMemoryPoolFactory.cs (2)
14private readonly MemoryPoolMetrics _metrics; 20public PinnedBlockMemoryPoolFactory(MemoryPoolMetrics metrics, TimeProvider? timeProvider = null, ILogger<PinnedBlockMemoryPoolFactory>? logger = null)
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (2)
17private readonly MemoryPoolMetrics? _metrics; 23public DefaultMemoryPoolFactory(MemoryPoolMetrics? metrics = null, ILogger<DefaultMemoryPoolFactory>? logger = null)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
52private readonly MemoryPoolMetrics? _metrics; 73public PinnedBlockMemoryPool(string? owner = null, MemoryPoolMetrics? metrics = null, ILogger? logger = null)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
PinnedBlockMemoryPoolTests.cs (6)
235using var currentMemoryMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.PooledMemoryName); 276using var totalMemoryMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.AllocatedMemoryName); 311using var rentMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.RentedMemoryName); 344using var evictMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.EvictedMemoryName); 382using var rentMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.RentedMemoryName); 410using var rentMetric = new MetricCollector<long>(testMeterFactory, "Microsoft.AspNetCore.MemoryPool", MemoryPoolMetrics.RentedMemoryName);