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