G-71
G-71

Reputation: 3682

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 me for this goal ?

Upvotes: 29

Views: 47034

Answers (4)

Deve
Deve

Reputation: 4648

If open source software isn't mandatory you could also check out Purify

Upvotes: 2

Sonorx
Sonorx

Reputation: 1439

also may look ccmalloc, NJAMD, mpatrol, YAMD, LeakTracer

Upvotes: 2

Cody
Cody

Reputation: 3764

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>

Upvotes: 43

jonsca
jonsca

Reputation: 10381

Use Valgrind for that purpose.

Upvotes: 2

Related Questions