In front of the installation of xhprof, the installation of the profile Analysis Tool xhprof in PHP helped us a lot. However, if the project is bigger, the function call relationship is messy, the table is too pale, and it would be too happy if there is a graphical interface. There is no difficulty in graphical interfaces. Just install a plug-in called graphviz,
In front of the installation of xhprof, the installation of the profile Analysis Tool xhprof in PHP helped us a lot. However, if the project is bigger, the function call relationship is messy, the table is too pale, and it would be too happy if there is a graphical interface. There is no difficulty in graphical interfaces. Just install a plug-in called graphviz,
Xhprof is installed on the front side: Install the profile analysis tool xhprof of PHP
A single table helps us a lot, but if the project is bigger, the function call relationship is messy, and the table is too pale. If there is a graphic interface, it will be too happy.
There is no difficulty in the graphic interface. Just install a plug-in called graphviz. After all, it is a drawing and dependent on libpng,
So we should first install libpng:
wget http://nchc.dl.sourceforge.net/project/libpng/libpng15/1.5.9/libpng-1.5.9.tar.gztar -zxvf libpng-1.5.9.tar.gzcd libpng-1.5.9/./configuremake && make install
After libpng is installed, graphviz can be installed:
wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gztar -zxvf graphviz-2.24.0.tar.gzcd graphviz-2.24.0/./configuremake && make install
After that, you can enjoy a happy life. On the table page, click [View Full Callgraph] and the page will be displayed:
Disclaimer: This article uses the CC BY-NC-SA 3.0 protocol for authorization
Reprinted, please indicate the source: Xiaojing's blog
Link: http://www.phpv5.com/blog/archives/450/