为什么kcachegrind不显示调用图?

Cos*_*s64 18 linux kcachegrind

我试图获得有关大型程序流程的一些信息.过去,KCachegrind曾经很擅长这一点.但是我系统上的最新版本(0.6kde)(Kubuntu 10.10)将不会显示调用树和调用者映射.它只绘制一个包含当前函数的框,但没有箭头和没有调用者.这是控制台输出:

kcachegrind(27917)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/cosmin/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
CallGraphView::refresh 
CallGraphView::refresh: Started process 0x1346f50, 'dot -Tplain'
CallGraphView::readDotOutput: QProcess 0x1346f50
CallGraphView::dotExited: QProcess 0x1346f50
Run Code Online (Sandbox Code Playgroud)

我安装了dot(graphviz),并且使用-g -O0编译了应用程序.

你知道问题出在哪里吗?

Cos*_*s64 35

哎呀...我打电话valgrind --tool=cachegrind而不是valgrind --tool=callgrind.

  • 真棒只是犯了同样的错误! (2认同)