CLR Profiler LOH size not matching with Object by address LOH size?

50 Views Asked by At

I am checking memory usage of my program using CLR profiler and i am concerned with the LOH allocation . Basically, i am allocating 10 files each of 1 mb size to an Azure data lake service file parallely ( using concurrentAppend API). Theoretically , LOH size should be 10 mb , right ? In the report preview( picture 1 ) -> i see that LOH heap bytes is 3.195 MB. When i check object by address( picture 2) -> LOH alloactes exactly 10 MB ( i checked by runnig the cursor over LOH bar and found 10 addresses each with 1 mb system.byte[] data.

so why am i getting 3.199 MB in preview report??

CLR profiler report preview

Object by address window

0

There are 0 best solutions below