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