memory and cpu usage measurements

H

hape

Hi all,

i am looking for a way to get measurements for cpu and memory usage for
..net programs.
The measurements have to be taken programmatically (monitoring). Thats
why i cannot use tools like vadump a.s.o.

Any Suggestions appreciated.

Thanks in andvance.

HaPe
 
M

Michael Nemtsev

Hello hape,

Use PerformanceCounter class for this http://msdn2.microsoft.com/en-us/library/system.diagnostics.performancecounter.aspx

h> i am looking for a way to get measurements for cpu and memory usage
h> for
h> .net programs.
h> The measurements have to be taken programmatically (monitoring).
h> Thats
h> why i cannot use tools like vadump a.s.o.
h> Any Suggestions appreciated.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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