Click here to Skip to main content
15,914,066 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to fetch the property values from task manager's performance tabs like CPU usage,Memory ,Physical memory,system memory and system properties in c#.

Please help me

TIA

What I have tried:

i tried google for solution but not able to find any solution.
Posted
Updated 13-Nov-17 9:18am

1 solution

You can get that data from the Performance Counters using the PerformanceCounter class. Start reading up on them here[^].

Keep in mind that there are two sides to the counters. Your app can both read performance counters and publish data using them too. Sometimes, documentation you read doesn't exactly make that clear and can be confusing.
 
Share this answer
 

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