Performance Counter Category Names? (C#)

前端 未结 4 949
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 07:20

I\'m trying to program in a performance counter into my C# application that launches another process and checks the processor usage of that launched process. As I understand it,

4条回答
  •  终归单人心
    2021-02-05 07:53

    I think you want to know what aspects of the process you can monitor. A list of the Process Performance Counters is available here Nevertheless you can use the GetCategories static method to list all categories in the machine or you could be more specific and create the PerformanceCategory for the "Process" category and use the GetCounters to get a list of all counters available. Hope this helps.

提交回复
热议问题