Installation

KCachegrind - Profiling Visualization

Home / Download / Installation

Documentation
Screenshots
Download
Links
Bugs & Wishes

Project Page

Installation of Callgrind

Unpack Callgrind into a directory and install it by running

  ./configure

This will use the Valgrind installation path by detecting it with "which valgrind" to copy the new tool nearside (this is required!). To specify another Valgrind installation, you can change PATH before running configure, or use the --prefix option.

  make
  make install (as "root" if needed)

This will compile callgrind and copy the new tool nearside to Valgrind. The script "callgrind" is supplied to run valgrind with the callgrind tool. It is the same as running "valgrind --tool=callgrind ...".

Installation of KCachegrind

Requirements

  • Qt 3.x (with development package)
  • KDE libraries (kdelibs) from KDE 3.x.y with 0 <= x <= 5 (with development package).
KCachegrind will call some command line tools in the background. These are a runtime requirement, i.e. they are not needed at compilation/installation time, but KCachegrind will warn you at runtime if they are not found. Following packages should be installed:
  • binutils. Command 'objdump' is used as disassembler for the Assembler View.
  • graphviz. Command 'dot' is used for graph layouting in the Callgraph View.

Compilation and Installation

Make sure that you have installed KDE 3.x with according development packages. If you want to install KCachegrind in a system wide manner, get the global installation directory of KDE by running

  kde-config --prefix

Unpack the KCachegrind sources into a directory and install KCachegrind by running (supposing /opt/kde3 as your global KDE installation directory)

  ./configure --prefix=/opt/kde3

(To install on a x86-64 machine, you usually need to specify "--enable-libsuffix=64" in addition for configure to find installed 64bit libraries)

If you don't specify a prefix to "configure", KCachegrind will be installed into /usr/local/kde. If you don't have root permission, choose e.g. $HOME/kde as prefix. In this case, you have to set KDEDIR=$HOME/kde additionally. Put $HOME/kde/bin into your path, too.

  make
  make install (as "root" if needed)

Running "kcachegrind" should open an toplevel window with no trace loaded.

KCachegrind


Last site update: November 27, 2005