views:

226

answers:

2

I want to use the performance counter output in my program. How can I access the performance counter in code without using the perfmon.exe. I want to create my own performance counter app.

+1  A: 

You can fully interact with performancecounters throught the System.Diagnostics.PerformanceCounter classes (Documentation and examples here).

Foxfire
+2  A: 

This is exposed via the PerformanceCounter Class, samples here.

Alex K.
I want to see the performance of a WCF service using the Performancecounter class without using the perfmon tool. I want to know the #of operations performed by the service. Anyone there can give me a sample?
Lawrence A. Contreras