Using PerformanceCounter to track memory and CPU usage per process?

前端 未结 3 1234
耶瑟儿~
耶瑟儿~ 2020-12-01 02:51

How can I use System.Diagnostics.PerformanceCounter to track the memory and CPU usage for a process?

3条回答
  •  一个人的身影
    2020-12-01 03:39

    I think you want Windows Management Instrumentation.

    EDIT: See here:

    Measure a process CPU and RAM usage

    How to get the CPU Usage in C#?

提交回复
热议问题