Navaneeth

Hi

How I can calculate the space utilized by each object I have used several custom written class objects in my program So as a part of fine tuning the performance, I would like to know how to calculate the space utilized by these class objects



Re: Visual C# General Calculating space used by an object

sh_omer

Hi,
You can use CLR profiler for this purpose.
you can download CLR profiler from the following location.

http://www.microsoft.com/downloads/details.aspx FamilyID=a362781c-3870-43be-8926-862b40aa0cd0

And if you want to know the details of how clr profiler works then check out the following article on msdn

http://msdn2.microsoft.com/en-us/library/ms979205.aspx

Regards,
Omer

Please dont forget to mark this post as answer if you find it helpful - Thanks