calculate memory utlisation

  • Thread starter Thread starter anjali krishna
  • Start date Start date
anjali said:
How to calculate the memory utilised for allocation of objects in C#?. Can u help me with the code

You can use a memory profiler. I hear the Red Gate one is good.

There's not really a practical way I know of to track memory used
per-object from within your own code. There are performance counters
you can read to give you a rough idea of memory usage, but it's not
going to be a very fine-grained analysis.

Pete
 
Back
Top