• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

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?
0
JPERKS1985
Asked:
JPERKS1985
  • 3
  • 2
2 Solutions
 
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:
search for  Process Class in MSDN and download the examples
0
 
5thcavCommented:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbcode/local/sampleexecutables/ProcessClass.zip
0
 
callrsCommented:
More:
http://www.experts-exchange.com/Programming/Q_21859544.html     Programming: Check memory usage (win32)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now