Search code examples
c#countperfmon

How to access Perfmon info?


I would like to get some NCache info as Perfmon sees in (eg: Count) but directly using C#. Does anyone have any code for this, please?


Solution

  • Have you looked at the docs for System.Diagnostics.PerformanceCounter? I would expect them to give you a reasonable starting point.