程序中已用内存的大小 [英] Size of used memory in a program
本文介绍了程序中已用内存的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个程序,我需要评估程序使用的内存量。是否有一个函数是C ++我可以用来获取我的程序正在使用的内存量?
I have a program and I need to evaluate the amount of memory my program is using. Is there a function is C++ that I can use to get the amount of memory that my program is using?
推荐答案
请检查:
http:/ /msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx [ ^ ]
并在页面中间查看收集进程的内存使用信息示例。
Please, check this:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683219(v=vs.85).aspx[^]
And see the "Collecting Memory Usage Information for a Process" example about on the middle of page.
看看 here [ ^ ] ...
这篇关于程序中已用内存的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文