Find out C++ Memory Usage in Code

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
posted @ 2016-07-30 00:36  findumars  Views(344)  Comments(0Edit  收藏  举报