Solved

Retrieve memory/cpu used by my program.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Round up to 100% in .NET 10 87
Help with deleting records by comparing two files using VB.NET 8 56
fso.FolderExists("\\server\HiddenFolder$") 4 52
Variable Event ? 3 23
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…
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 …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 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

19 Experts available now in Live!

Get 1:1 Help Now