user181218
user181218

Reputation: 1685

Dynamic code analysis for C++

Is there an open source and (relatively) simple-to-use dynamic code analysis tool for C++ code?

Something like IBM Purify (memory corruption detection, memory leak detection, application performance profiling, etc.)

Upvotes: 6

Views: 12296

Answers (5)

UNREAL
UNREAL

Reputation: 506

Why no one has mentioned Fsanitize yet? I think it's fastest and broad.

Upvotes: 0

Dávid Tóth
Dávid Tóth

Reputation: 3235

CodeCompass is quite good as well.

Although it has quite the dependencies compared to Valgrind and Duma, it's a quality analysis tool.

Upvotes: 0

Eddy Pronk
Eddy Pronk

Reputation: 6695

Try Duma (Detect Unintended Memory Access).

Upvotes: 2

vrbilgi
vrbilgi

Reputation: 5793

Try Valgrind. It is not as powerful as IBM Purify, but it works quite fine...

Upvotes: 1

neuro
neuro

Reputation: 15180

The software that is widely used (on Linux at least) is Valgrind. It has a lot of sub tools used to do what you are looking for.

There is also KCacheGrind which is a GUI frontend to the profiling tool of Valgrind, AKA Cachegrind.

Upvotes: 6

Related Questions