[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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