Link to home
Start Free TrialLog in
Avatar of JPERKS1985
JPERKS1985

asked on

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?
Avatar of callrs
callrs

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
ASKER CERTIFIED SOLUTION
Avatar of 5thcav
5thcav
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbcode/local/sampleexecutables/ProcessClass.zip
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial