Solved

Retrieve memory/cpu used by my program.

Posted on 2006-06-24
8
449 Views
Last Modified: 2009-05-08
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
Comment
Question by:JPERKS1985
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 30

Expert Comment

by:callrs
ID: 16977697
0
 
LVL 30

Expert Comment

by:callrs
ID: 16977732
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
 
LVL 7

Accepted Solution

by:
5thcav earned 250 total points
ID: 16978993
search for  Process Class in MSDN and download the examples
0
 
LVL 7

Expert Comment

by:5thcav
ID: 16979002
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbcode/local/sampleexecutables/ProcessClass.zip
0
 
LVL 30

Assisted Solution

by:callrs
callrs earned 250 total points
ID: 17127626
More:
http://www.experts-exchange.com/Programming/Q_21859544.html     Programming: Check memory usage (win32)
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question