Retrieve memory/cpu used by my program.

I need a way to retrieve the amount of memory used by my program and what percentage of the cpu is used? Is this possible?
LVL 1
JPERKS1985Asked:
Who is Participating?
 
5thcavConnect With a Mentor Commented:
search for  Process Class in MSDN and download the examples
0
 
callrsCommented:
0
 
callrsCommented:
www.codeproject.com/csharp/ManageProcessShellAPI.asp  Managing Processes and Shell API Functionality using .NET, Part 1
"The Process class in .NET provides information about all the processes running on your computer. For example, you can handle information in a process such as PID, handle count (a handle is a value used to uniquely identify a resource), image name, memory usage, faults etc. "

Related info: http://www.codeguru.com/cpp/v-s/debug/article.php/c4415/    Performance Meter and Memory Leaks Detector
0
 
5thcavCommented:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbcode/local/sampleexecutables/ProcessClass.zip
0
 
callrsConnect With a Mentor Commented:
More:
http://www.experts-exchange.com/Programming/Q_21859544.html     Programming: Check memory usage (win32)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.