7 references to GetAllocatedBytesForCurrentThread
System.Private.Windows.Core.Tests (3)
System\Value\MemoryWatch.cs (3)
79return new(GC.GetAllocatedBytesForCurrentThread()); 87Assert.Equal(0, GC.GetAllocatedBytesForCurrentThread() - _allocations); 90_allocations = GC.GetAllocatedBytesForCurrentThread();
System.Windows.Forms.Tests (4)
System\Windows\Forms\PropertyStoreTests.cs (4)
161long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 163currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes; 196long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 198currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes;