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

I'd like to include system performance indicators in my application code. I already have working C# code which, in selected points in time, calls the NextValue property on a System.Diagnostics.PerformanceCounter obejct. This works fine and returns performance values for selected performance indicators for my system, such as number of level 2 GCs, CPU usage etc.

My question now is:

- For a particular problem, such as memory usage, thread usage, number of GCs etc. I'd like to use the proper indicators. Where do I find a list of performance indicators with a description of each indicator?


I do have a list of available indicators in the performance management part of control panel (I use Windows 7). However, all the indicators are in my system language and not in the original format which I would need for my code!

I already googled for lists but couldn't find any. There is a lot of documentation on how to include indicators, etc. but very little about what which indicators are available and what they do. Does anybody know where to find a proper list, ideally for Windows 7 and XP?

Thanks

Peter
Posted

Take a look at this: Performance Counters Functions[^].

This is the unmanaged API, so you have to use Interop to get at it.

Best of luck
Espen Harlinn
 
Share this answer
 
 
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