Q:

Visual C++ examine object instances size in the process memory

I wish to know what is the overall memory consumed in runtime by all instances of a specific type.
I mean,I am using process explorer to see how much memory consumes specific process.But I would also like to know what objects and how much memory they consume inside the process. 

A:

Some memory leas detector tools can do this, such as Memory Validator. It is not free, you can download a trial version and try it.
If you just want to find memory leaks, DebugDiag from MS is a good choice.
Another way is to override new and delete for the object you want to monitor,  thus you can track the memory usage.

