If you want to see the diagram of XHProf . You should install Graphviz . Here is the link http://www.graphviz.org/.

Just download the lastest version source code. Then

./config --with-png=yes
make && make install

But before this. Make sure you have install the zlib and libpng : )