To use this tool, specify --tool=cachegrind on the Valgrind command line. Cachegrind is a high-precision tracing profiler. It runs slowly, but collects precise and reproducible profiling data. It can merge and diff data from different runs. To expand on these characteristics: Precise. Cachegrind measures the exact number of instructions executed by your program, not an approximation. Furthermore,