measuring memory usage

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
 
W

Willy Denoyette [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top