Provides easy performance counter integration for monitoring blocks of code for Operations/sec and Average Time/Operation. Use in the following pattern:
[UPDATE (10-26-2007): You can now specify the output options for Console, Debug, and/or Perfmon. Doesn't give you all the Perfmon metrics, but it's useful.]
using(new PerformanceHelper(CATEGORY, "<BlockInstanceName>") )
{
//...
}
/* OR */
using(new PerformanceHelper(CATEGORY, "<BlockInstanceName>", OutputOptions.Debug | OutputOptions.Perfmon) )
{
//...
}