开发者

How I can detect memory leaks of C++ application in Linux (Ubuntu OS)?

开发者 https://www.devze.com 2023-02-17 15:47 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消