How I can detect memory leaks of C++ application in Linux (Ubuntu OS)?
How I can detect memory leaks of C++ application in Linux (Ubuntu OS) ? What is the program you can advise m开发者_如何学编程e for this goal ?
Check out Valgrind, it should be in the Ubuntu repository. it can give you detailed information about memory usage in C++ programs. Kind of like a debugger for memory usage.
valgrind --tool=memcheck <your_app> <your_apps_params>
Use Valgrind for that purpose.
also may look ccmalloc, NJAMD, mpatrol, YAMD, LeakTracer
If open source software isn't mandatory you could also check out Purify
精彩评论