Retrieve memory/cpu used by my program.

Posted on 2006-06-24
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?
Question by:JPERKS1985
  • 3
  • 2
LVL 30

Expert Comment

ID: 16977697
LVL 30

Expert Comment

ID: 16977732  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:    Performance Meter and Memory Leaks Detector

Accepted Solution

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

Expert Comment

ID: 16979002
LVL 30

Assisted Solution

callrs earned 250 total points
ID: 17127626
More:     Programming: Check memory usage (win32)

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