您的位置:首页 > 编程语言 > C语言/C++

Find out C++ Memory Usage in Code

2016-07-30 00:36 399 查看
You can use Microsoft Platform SDK functions to get the heap size at a specific point. If get the heap size at point A in your code, and then again at point B, you can see how much it has grown. This might help you isolate here memory growth occurs.

Some Microsoft Platform SDK functions relating to this are:

HeapLock
HeapWalk
GetProcessHeaps
GetHeapSize
HeapUnlock
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: