I need a way to know how much memory a program is using at any given time in the course of running. I'm just learning about the basic points of memory management and copy constructors and the lot, and I want a way to know when I'm on the right track, and when I have memory leaks.
What is the best route to pursue? Is there a way to do this from within the program and assign a particular variable with the amount of memory being used, or that is available in the heap or the stack?
What is the best route to pursue? Is there a way to do this from within the program and assign a particular variable with the amount of memory being used, or that is available in the heap or the stack?