Is there a built-in method in System.Diagnostics for retrieving all of the instantiated performance counters for a given CategoryName?
We have a number of multi threaded apps using custom performance counters and now need to add a dashboard for displaying the performance statistics.
I’d like to make the dashboard in such a way that it does not need to be updated whenever someone adds a new counter to a new piece of code.
Try this:
You have to be aware of categories that can have multiple instances and deal with those slightly differently.