9 references to GetAllocatedBytesForCurrentThread
Microsoft.ML.Tokenizers.Tests (2)
TiktokenTests.cs (2)
518long allocation = GC.GetAllocatedBytesForCurrentThread(); 527allocation = 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)
161long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 163currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes; 196long currentBytes = GC.GetAllocatedBytesForCurrentThread(); 198currentBytes = GC.GetAllocatedBytesForCurrentThread() - currentBytes;