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:
Some Microsoft Platform SDK functions relating to this are:
HeapLock HeapWalk GetProcessHeaps GetHeapSize HeapUnlock
相关文章推荐
- c++ RTTI c++强制类型转换:dynamic_cast、const_cast 、static_cast、reinterpret_cast
- C++类的静态成员
- Leetcode 53. Maximum Subarray (Medium) (cpp)
- 多少BUGS,尽源于拷贝粘贴!
- c/c++程序内存分配
- 李洪强漫谈iOS开发[C语言-027]-自增与自减运算符
- c++虚继承
- java-基础-java/c++
- C++ 引用的好处
- C++模板
- c语言 struct 的初始化
- c++ 学习之路 第二天 string理解
- 进阶项目8.1学生成绩1
- 进阶项目8-学生成绩统计
- 进阶项目6.1-两人生日差
- 进阶项目6-日期结构体
- Framework4.5,vs下系统自动生成的C++ win32应用程序的详细解释
- 5-40 奥运排行榜
- c++设计模式之策略者模式
- 5-39 魔法优惠券