9 references to GetAllocatedBytesForCurrentThread
Microsoft.ML.Tokenizers.Tests (2)
TiktokenTests.cs (2)
508long allocation = GC.GetAllocatedBytesForCurrentThread(); 517allocation = GC.GetAllocatedBytesForCurrentThread() - allocation;
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)
163long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 165currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes; 198long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 200currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes;