Is there any way to get the number of bytes allocated in the data memory segment by a C++ program during debug-time? I know how to track general memory consumption and heap allocation, but this is something I have never done before.
I am looking for either a code solution or some form of Visual Studio analyzing utility.