Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.

I have a question about check the memory usage.

I'm using Visual studio 2015 on Windows 10.

I have been checking the memory usage as below methods:

1. Check the 'memory leak' message of Visual Studio's output window when debug mode is terminated.
2. Check the memory usage by using Visual studio's performance profiler.
3. Check the memory usage by using task manager's resource monitor.

My question is:
1. Are they reliable?
2. If it is not, are they any other way to check the memory usage?

I need your advice.

Thank you :)

What I have tried:

1. Check the 'memory leak' message of Visual Studio's output window when debug mode is terminated.
2. Check the memory usage by using Visual studio's performance profiler.
3. Check the memory usage by using task manager's resource monitor.
Posted
Updated 8-Apr-20 7:04am

1 solution

Those are the things I use and they seem reliable enough to me. I have been able to detect and correct memory and resource leaks using them. This is very, VERY important to me because I write software for automation systems that run continuously for months and months. Leaks are catastrophic for me so I make the programs cycle constantly and monitor them closely.

The memory leak messages are only as good as the tracking facility you use. I use MFC's DEBUG_NEW macro and it works pretty well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900