[CMake] Use ctest with callgrind
Bogdan Cristea
cristeab at gmail.com
Wed Jan 8 08:56:23 EST 2014
Hi
I am trying to use valgrind with callgrind tool for performance
profiling. In my CMakeLists.txt file I have the following lines:
include(CTest)
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--tool=callgrind --dump-instr=yes
--simulate-cache=yes --collect-jumps=yes")
add_subdirectory(profile)
however, it seems that valgrind is not called with callgrind tool when using
ctest -D ExperimentalMemCheck
and no callgrind.out.* file is generated. Is there a way to rewrite the
default options for valgrind command ?
thanks
Bogdan
More information about the CMake
mailing list