我试图分析我的计划与Valgrind的:Valgrind的错误 - 无法打开缓存模拟输出文件
valgrind --tool=callgrind --callgrind-out-file=/home/user/callgrind.%p --instr-atstart=no ./src/Leonardo --https leosd:11443
后,我达到我的文件,凡在我的目标轮廓功能我:
CALLGRIND_START_INSTRUMENTATION;
/* a lot of code to profile */
CALLGRIND_STOP_INSTRUMENTATION;
CALLGRIND_DUMP_STATS;
程序崩溃并在控制台输出为:
==3117== Error: can not open cache simulation output file `/home/user/callgrind.3117.1014'
P.S.如果我从QtCreator运行valgrind
从应用程序启动分析它运行完美,但我不需要这个。
任何想法如何解决这个问题?不幸的是,Google没有帮助。