Any tool to find size of memory allocated dynamically using malloc/realloc?

后端 未结 4 1756
时光说笑
时光说笑 2021-01-23 19:44

I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates memory dynamically from heap using malloc and realloc. I want to calculate the maximu

4条回答
  •  孤城傲影
    2021-01-23 20:25

    VS has a number of heap debugging tools such as _heapwalk, which will let you walk through the heap and get information about blocks on the heap. Most of what you need to do is figure out when your heap is at maximum usage, so you know when to walk it and find its size.

提交回复
热议问题