How to retrieve committed memory via C++

后端 未结 1 878
太阳男子
太阳男子 2021-01-22 11:13

I\'ve found several answers to this question here on SO, but none that answers my question. I\'m trying to track down some memory leaks in our unmanaged C++ application, and fro

相关标签:
1条回答
  • 2021-01-22 11:24

    It looks like you want to use GetProcessMemoryInfo. This populates a PROCESS_MEMORY_COUNTERS structure.

    The key element of this structure you'll be interested in is

    PagefileUsage The Commit Charge value in bytes for this process. Commit Charge is the total amount of memory that the memory manager has committed for a running process.

    • Collecting Memory Usage Information For a Process
    0 讨论(0)
提交回复
热议问题