It would probably be impossible to get the amount of memory accupied by a
class since it depends on framework implementation. What you can do is using
statistics to estimate this amount by creating lot's of classes and divide
memory consumption by number of created classes. You can measure memory
consumption with some memory usage statistics application.
regards
Tomaz
"Kevien Lee" <ironpythonster (AT) gmail (DOT) com> wrote
Quote:
If there are some int,string ,ushort filed in a class,How to find out
how it would cost of the memery? |