Exemple #1
0
 public void CreateCounters()
 {
     PerfCounterFactory.AddPerfCounter(new PerfCounter(PerformanceObjectName, TotalOfRequestStr, "请求总数",
                                                       PerformanceCounterType.NumberOfItems64));
     PerfCounterFactory.AddPerfCounter(new PerfCounter(PerformanceObjectName, RateOfRequestStr, "每秒请求的数量",
                                                       PerformanceCounterType.RateOfCountsPerSecond64));
     PerfCounterFactory.AddPerfCounter(new PerfCounter(PerformanceObjectName, CountOfCurrentRequestStr, "当前并发请求量",
                                                       PerformanceCounterType.RateOfCountsPerSecond64));
 }