Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do memory profiling on Windows? [duplicate]

Possible Duplicate:
Memory leak tool for C++ under Windows

I used to work on a Mac project and one thing I really enjoyed about XCode was its profiler. I found many a bug by just running my program with various settings of that profiler. Most notably, it would show me which parts of my program consumed memory, it would show me if it leaked memory and it would show me when it would do that. If I was working with a GUI application, it would even show me screenshots of what I was doing when those allocations/leaks/deallocations occurred.

Nowadays, I am working on a Windows/C++ project using Visual Studio and I suspect the project to consume too much memory and possibly leak some memory, too. Using XCode, I would just fire up that profiler and immediately know what's happening. In Visual Studio however, I can find no such thing (there is a somewhat awkward performance profiler, but CPU time is not my concern here).

So, how would you go about searching for leaks and code with too much memory consumption?

like image 841
bastibe Avatar asked Dec 01 '10 09:12

bastibe


People also ask

Which profiling will analyze the memory usage of the application?

When the Diagnostic Tools window appears, choose the Memory Usage tab, and then choose Heap Profiling.


1 Answers

See Application Verifier, LeakDiag, UMDH, and Debugging Tools for Windows in general.

All of which are free.

For a guide on how to use them, see Advanced Windows Debugging.

like image 81
Alex Budovski Avatar answered Sep 24 '22 18:09

Alex Budovski