我使用以下命令在Centos上安装了 valgrind :
yum install valgrind kcachegrind graphviz
然后我将 callgrind 工具用于我的 c++ 程序。它生成了它的 callgrind.out.42424 文件。
现在,我想使用以下命令在 KCacheGrind 上打开此文件:
kcachegrind ./callgrind.out.42424
但终端说
bash kcachegrind:找不到命令
我不知道为什么我在安装时收到此错误。我是否需要在特定目录中才能运行此命令?