We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbbf8e commit 48796e0Copy full SHA for 48796e0
src/BenchmarkDotNet/Engines/Engine.cs
@@ -250,14 +250,11 @@ private void GcDump(string key)
250
GcStats gcStats;
251
using (FinalizerBlocker.MaybeStart())
252
{
253
- before = GC.GetAllocatedBytesForCurrentThread();
254
-
+ before = GC.GetTotalAllocatedBytes(true);
255
gcStats = MeasureWithGc(data.workloadAction, data.invokeCount / data.unrollFactor);
256
257
- after = GC.GetAllocatedBytesForCurrentThread();
+ after = GC.GetTotalAllocatedBytes(true);
258
}
259
260
261
exceptionsStats.Stop(); // this method might (de)allocate
262
var finalThreadingStats = ThreadingStats.ReadFinal();
263
0 commit comments