Click here to Skip to main content
15,031,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get the % of memory used by a process.
Right now, I'm able to get only the available memory by using:
PerformanceCounter memProcess = new PerformanceCounter("Memory", "Available KBytes");

Is there a way to get the desired result, may be using some calculation? Please help.

You can use this via WMI -[^].
Abhik03 20-May-13 2:54am
But, it doesn't tells how to get the usage of a particular process in %.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900