Reputation: 197
So I'm doing some benchmark to compare the deserialisation of a big JSON file from a String or a Stream using the BenchMarkDotNet library. I'd like to see the state of the LOH specifically but I can't find how to do it.
Currently I'm having the followings, using the "MemoryDiagnoser" argument.
Is there a way to also benchmark the LOH ?
Upvotes: 0
Views: 553
Reputation: 1364
BenchmarkDotNet does not provide any extra information about LOH (there is simply no managed API that we could easily use to add any meaningful information).
This old MSDN article by Maoni Stephens explains how to get some more information.
If you just want to get the size of LOH you can use Performance Monitor
which is part of Windows OS.
Upvotes: 3