Getting a process's ram usage

前端 未结 4 1962
刺人心
刺人心 2020-12-14 07:22

I have been having some trouble figuring out how exactly I get a process\'s ram usage. (How much ram it is currently consuming, not how much is reserved, or its max or min)<

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 08:20

    Win32 GetSystemInfo function works, too.

    It is actually successfully used on practice for array of bytes scanning in the process here in this Memory.dll project: https://github.com/erfg12/memory.dll/blob/042db0cf75e4152a7adf1ea47e6f23f1ad763fb6/Memory/memory.cs#L1909

提交回复
热议问题