9 references to GetAllocatedBytesForCurrentThread
Microsoft.ML.Tokenizers.Tests (2)
TiktokenTests.cs (2)
508
long allocation = GC.
GetAllocatedBytesForCurrentThread
();
517
allocation = GC.
GetAllocatedBytesForCurrentThread
() - allocation;
System.Private.Windows.Core.Tests (3)
System\Value\MemoryWatch.cs (3)
79
return new(GC.
GetAllocatedBytesForCurrentThread
());
87
Assert.Equal(0, GC.
GetAllocatedBytesForCurrentThread
() - _allocations);
90
_allocations = GC.
GetAllocatedBytesForCurrentThread
();
System.Windows.Forms.Tests (4)
System\Windows\Forms\PropertyStoreTests.cs (4)
163
long currentBytes = GC.
GetAllocatedBytesForCurrentThread
();
165
currentBytes = GC.
GetAllocatedBytesForCurrentThread
() - currentBytes;
198
long currentBytes = GC.
GetAllocatedBytesForCurrentThread
();
200
currentBytes = GC.
GetAllocatedBytesForCurrentThread
() - currentBytes;