Performance counters how?

Topics: Enterprise Library Core
Jul 29, 2009 at 5:29 PM

I want to know how to setup performance counter for a App block? Anyone?

Jul 30, 2009 at 8:42 AM

Hi,

  1. First of all is you would need to enable the instrumentation, you can find here http://msdn.microsoft.com/en-us/library/cc511816.aspx the steps to do it.
  2. In your application config, make sure to add the Instrumentation section, and set the PerformanceCountersEnabled to true.

You can try this quickly by using the QuickStart applications, lets say, the Validation quick start, just do the steps above, open the Performace monitor and add the counters.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com