Cholesterol
Cholesterol

Reputation: 197

LOH benchmarking using benchmarkdotnet

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.

enter image description here

Is there a way to also benchmark the LOH ?

Upvotes: 0

Views: 553

Answers (1)

Adam Sitnik
Adam Sitnik

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

Related Questions