Code analysis
Tools that analyze hotspots, memory issues, code coverage, etc
Cross Platform
CTest (run tests)
- Install CMake and CTest
- Enable testing when you run CMake (
SC_ENABLE_TESTING=ON
) - Build the test target (i.e.
make test
) - On GitHub, PR’s are automatically tested with Travis-CI and Appveyor.
Linux-only
callgrind (find hotspots)
For best results, install kcachegrind for visualization. Requires KDE.
massif (find where the most memory is allocated)
Install valgrind, kgraphviewer, massif-visualizer. Install valgrind from your distro. The other two are probably not available in your distro; in addition, they require Qt, KDE, and graphviz-dev.
- build kgraphviewer:
- build massif-visualizer:
- run massif and visualize:
lcov/gcov (code coverage)
Downloads
Output of callgrind, cachegrind, and massif: https://docs.google.com/open?id=0B9G1tTILtiCyTmhoLTZva0JxdTQ