I am trying to profile my program with Valgrind :
valgrind --tool=callgrind --callgrind-out-file=/home/user/callgrind.%p --instr-atstart=no ./src/Leonardo --https leosd:11443
After I get to my file, where I have the target-profile function, I:
CALLGRIND_START_INSTRUMENTATION;
CALLGRIND_STOP_INSTRUMENTATION;
CALLGRIND_DUMP_STATS;
Program crash and console exit:
== 3117 == Error: Unable to open cache simulation output file `/home/user/callgrind.3117.1014 '
PS If I run valgrind
from QtCreator with profiling from an application, it works fine, but I don't need it.
Any idea how to fix this? Unfortunately, Google does not help.
source
share