In order to compile and install KCachegrind on your system, type the following in the base directory of the KCachegrind distribution:
%
./configure
%
make
%
make install
Since KCachegrind uses autoconf and automake you should have no trouble compiling it. Should you run into problems please report them to the KDE mailing lists.