How to calculate memory usage as Task Manager does?

前端 未结 1 1068
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 16:09

Ok so I am using WMI (.net/C#) to constantly collect data about a specific process that is running on the machine. I get the data through Win32_PerfFormattedData_PerfProc_Proces

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-05 16:55

    Win32_PerfFormattedData_PerfProc_Process is the correct class. The property it pulls from is WorkingSetPrivate. No formula/calculation needed.

    0 讨论(0)
提交回复
热议问题