C#中 Counter.Stop錯誤1“Garment_factory_management.Form1.Counter(object, System.EventArgs)”是一個“方法”,這在給定的上下文中無效
1 回答

胡子哥哥
TA貢獻1825條經驗 獲得超6個贊
c# - 如何在自己的代碼中使用Performance Counters
原創 2012年06月27日 14:58:28 標簽:performance /c# /exception /float /null /thread 729
筆者寫了兩個類 PerformanceCounterCollector 和 PerformanceCounterCollectorList用來監視不同Counters的值.
其中PerformanceCounterCollector對應一個Performance counter, 可以在其它程序或者代碼運行的一段時間內, 監視指定的Counter的平均值,最大值,最小值和最小非零值。
PerformanceCounterCollectorList 對應多個Performance counter, 可以同時監視多個Counters。
- 1 回答
- 0 關注
- 704 瀏覽
添加回答
舉報
0/150
提交
取消