我試圖分析我的計劃與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沒有幫助。