14 references to GetTotalMemory
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
57var allocated = GC.GetTotalMemory(forceFullCollection: false);
Microsoft.CodeAnalysis.Workspaces (1)
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (1)
135GC.GetTotalMemory(forceFullCollection: true);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
451ch.Trace("GC Total Memory = {0} MB", GC.GetTotalMemory(true) / 1024 / 1024);
Microsoft.ML.StandardTrainers (1)
Optimizer\Optimizer.cs (1)
332long totalMem = GC.GetTotalMemory(true);
PresentationFramework (2)
MS\Internal\WeakHashtable.cs (1)
92long globalMem = GC.GetTotalMemory(false);
MS\Internal\WeakObjectHashtable.cs (1)
90long globalMem = GC.GetTotalMemory(false);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\WeakHashtable.cs (1)
62long globalMem = GC.GetTotalMemory(false);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
89_gcHeapSizeCounter ??= new PollingCounter("gc-heap-size", this, () => ((double)GC.GetTotalMemory(false) / 1_000_000)) { DisplayName = "GC Heap Size", DisplayUnits = "MB" };
System.Windows.Forms.UI.IntegrationTests (1)
ImageListTests.cs (1)
72GC.GetTotalMemory(true);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (1)
233GC.GetTotalMemory(forceFullCollection: true);
Wasm.Performance.TestApp (1)
WasmMemory.cs (1)
11public static long GetTotalMemory() => GC.GetTotalMemory(forceFullCollection: true);
WinFormsControlsTest (3)
FormOwnerTestForm.cs (3)
26long memoryStart = GC.GetTotalMemory(false); 40long memoryBeforeGC = GC.GetTotalMemory(false); 44long memoryAfterGC = GC.GetTotalMemory(true);