9 references to GetAllocatedBytesForCurrentThread
Aspire.Dashboard.Tests (7)
HistogramAllocationTests.cs (7)
34var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 64var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 92var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 118var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 147var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 173var allocated = GC.GetAllocatedBytesForCurrentThread() - before; 188return GC.GetAllocatedBytesForCurrentThread();
Microsoft.ML.Tokenizers.Tests (2)
TiktokenTests.cs (2)
578long allocation = GC.GetAllocatedBytesForCurrentThread(); 587allocation = GC.GetAllocatedBytesForCurrentThread() - allocation;