Solved

Retrieve memory/cpu used by my program.

Posted on 2006-06-24
8
351 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
  • 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now