measuring memory usage

  • Thread starter Thread starter Kovan Akrei
  • Start date Start date
K

Kovan Akrei

Hi,
I have a multithreaded console program package. I would like to check it's
peak memory usage. When I check the cmd windows process in task manager I
allayes get something like 6 or 7 Mb, but I know that the program uses more
than that

My questions is:
Are there any utilities that tells how much memory (max memory) a C# program
uses during its execution? How about classes in .Net class library?

Kovan
 
Use the performance monitor and watch the CLR memory counters and the
process private bytes and Working set size.
From within your code you can use the System.Diagnostics.Process class to
check some process memory counters and read the performance counters.
Willy.
 
Back
Top