I am trying out a C/C++ program, I want to know how much memory i am using due to heap and some other data structures. So how can I find out the amount of memory used by my various data structures?
I think that malloc operator should be overridden but I am not sure about the same.
I am working on Linux and on Netbeans 7.1.
You can use memory profilers for c++ like Valgrind as recommended in similar questions. see this
For netbeans IDE look at this.