Summary
Performance counters come in two types: custom and system-defined.
Custom counters are defined by an application and their values are controlled by that application.
System-defined counters exist under the Process object and are useful for tracking down and monitoring issues in any application.
Custom counters are nearly limitless in their use and are defined by the developer.
Adding counters to a service is easy, but make sure that the values of the counters you expose are correct and useful. Also make sure that the code required to update these values is not so complex that it adds too much overhead to the service.
Performance counters are read by consumers such as Task Manager and Perfmon.
Perfmon is a generic performance counter consumer ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access