[Mono-list] Memory Usage

Pedro Santos Pedro Santos <donbonifacio.general@gmail.com>
Sat, 5 Mar 2005 15:33:03 +0000

I would like to know how much memory is using some object that I use
(let's call it Buu). This Buu is a very big object with lot's of
complex fields. Are there any to get  this information? I would like
to know this at run time (OS performance couters and profilers are not
an option cause this is a web aplication running on a remote server).

>From time to time, I serialize the Buu object(using BinaryFormatter).
I am wondering if the size of the stream has some relation to the
amount of memory that the object is using. For example, if I serialize
Buu and I got a stream with 5 M, is the memory used by Buu less than 5
M? Or does BinaryFormatter performs some king of compression?

Any more ideias? Thanks.

Pedro Santos