6 references to GetTotalAllocatedBytes
Microsoft.Build (1)
Instance\TaskRegistry.cs (1)
923
return GC.
GetTotalAllocatedBytes
(false);
Microsoft.Extensions.Telemetry.PerformanceTests (2)
SustainedGcPressureMeasurement.cs (2)
154
long allocatedBefore = GC.
GetTotalAllocatedBytes
(precise: true);
208
long allocatedBytes = GC.
GetTotalAllocatedBytes
(precise: true) - allocatedBefore;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\RuntimeMetrics.cs (1)
46
() => GC.
GetTotalAllocatedBytes
(),
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
217
public long MonitoringTotalAllocatedMemorySize => GC.
GetTotalAllocatedBytes
(precise: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
90
_allocRateCounter ??= new IncrementingPollingCounter("alloc-rate", this, () => GC.
GetTotalAllocatedBytes
()) { DisplayName = "Allocation Rate", DisplayUnits = "B", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };