Deleting Windows performance counter categories

后端 未结 4 1526
花落未央
花落未央 2021-01-31 18:44

I have a custom performance counter category. Visual Studio Server Explorer refuses to delete it, claiming it is \'not registered or a system category\'. Short of doing it progr

4条回答
  •  余生分开走
    2021-01-31 18:51

    You could also use LinqPad, as that doesn't involve an install of any kind - http://www.linqpad.net/.

    Run the following code as a "C# Statement(s)":

    System.Diagnostics.PerformanceCounterCategory.Delete("Name of category to delete");

    I'd run it twice, first time to do the actual delete, second time to get an error message to confirm the delete was successful.

提交回复
热议问题