track C++ memory allocations

前端 未结 8 1887
执笔经年
执笔经年 2020-11-28 04:18

I am looking for a way to track memory allocations in a C++ program. I am not interested in memory leaks, which seem to be what most tools are trying to find, but r

8条回答
  •  孤独总比滥情好
    2020-11-28 04:24

    Microsoft have well documented memory tracking functions. However, for some reason they are not really well-known in the developer community. These are CRT debug functions. Good starting point will be CRT Debug Heap functions.

    Check the following links for more details

    1. Heap state reporting functions
    2. Tracking heap allocation requests. Probably this is the functionality that you are looking for.

提交回复
热议问题