如何将性能计数器添加到我已经创建的类别中
我创建了一个如下所示的 PerformanceCounterCategory
var category = PerformanceCounterCategory.Create("MyCat", "Cat Help",
PerformanceCounterCategoryType.SingleInstance, "MyCounter", "Counter Help);
如何向该类别添加新计数器以监视另一个项目?
我找不到它的 api。
I have created a PerformanceCounterCategory like below
var category = PerformanceCounterCategory.Create("MyCat", "Cat Help",
PerformanceCounterCategoryType.SingleInstance, "MyCounter", "Counter Help);
How can I add a new counter to the category to monitor another item?
I cannot find the api for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不久前对此进行了研究,似乎不可能向现有类别添加计数器,您必须执行此操作才能通过添加新计数器来重新创建相同的类别。
I did a research on this a while back and it doesn't seem to be possible to add counters to an existing category, what you would have to do it to recreate the same category with addition of the new counter.