I have a C++ program running by Visual Studio 2010, how can i monitor the the memory usage of my program? Does there exist simple API, such as i can call clock_t start1
and start1 = clock();
to monitor the time usage of my program. Thanks:)
Asked
Active
Viewed 2.5k times
6

LoveTW
- 3,746
- 12
- 42
- 52
-
2possible duplicate: http://stackoverflow.com/q/282194/964225 – kappamaki Apr 17 '12 at 00:34
1 Answers
6
Memory management is not an easy problem like timing, and it is definitely more complicated to track.
I recommend looking at other similar StackOverflow posts to get started:
How to analyse program's memory usage in Visual Studio 2010?
How do you detect/avoid Memory leaks in your (Unmanaged) code?
These should help you solve whatever your specific memory-related problem is, whether it's looking for memory leaks, overwriting the end of an allocated buffer, or simply tracking how much memory you've allocated.

Community
- 1
- 1

NattyBumppo
- 336
- 2
- 8