15 references to new
Microsoft.Extensions.Caching.Memory (5)
MemoryCache.cs (5)
933
new
(stats.TotalHits, cacheNameTag, new("dotnet.cache.request.type", "hit")),
934
new
(stats.TotalMisses, cacheNameTag, new("dotnet.cache.request.type", "miss")),
951
: [new
Measurement
<long>(stats.TotalEvictions, cacheNameTag)];
967
: [new
Measurement
<long>(stats.CurrentEntryCount, cacheNameTag)];
982
? [new
Measurement
<long>(size, cacheNameTag)]
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
..\..\..\..\src\Libraries\Microsoft.Extensions.Diagnostics.ResourceMonitoring\Linux\LinuxUtilizationProvider.cs (2)
353
yield return new
Measurement
<double>(systemCpuTime / NanosecondsInSecond, [new KeyValuePair<string, object?>("cpu.mode", "system")]);
358
yield return new
Measurement
<double>(userCpuTime, [new KeyValuePair<string, object?>("cpu.mode", "user")]);
..\..\..\..\src\Libraries\Microsoft.Extensions.Diagnostics.ResourceMonitoring\Windows\WindowsContainerSnapshotProvider.cs (2)
230
yield return new
Measurement
<double>(basicAccountingInfo.TotalUserTime / TicksPerSecondDouble,
232
yield return new
Measurement
<double>(basicAccountingInfo.TotalKernelTime / TicksPerSecondDouble,
Stress.TelemetryService (1)
GaugeMetrics.cs (1)
28
measurements.Add(new
Measurement
<long>(workingSet, new KeyValuePair<string, object?>("process.id", process.Id)));
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Metrics\RuntimeMetrics.cs (5)
166
yield return
new
(collectionsFromThisGeneration - collectionsFromHigherGeneration, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[gen]));
181
yield return
new
(processCpuUsage.UserTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "user")]);
182
yield return
new
(processCpuUsage.PrivilegedTime.TotalSeconds, [new KeyValuePair<string, object?>("cpu.mode", "system")]);
191
yield return
new
(gcInfo.GenerationInfo[i].SizeAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i]));
201
yield return
new
(gcInfo.GenerationInfo[i].FragmentationAfterBytes, new KeyValuePair<string, object?>("gc.heap.generation", s_genNames[i]));