Generating Callgraph with XHGUI
failed to shell execute cmd=" "" -Tpng"
I was pretty confident that this should have been running dot
; I do a bit with graphviz and that -T looks very dot-like. I installed the graphviz package for ubuntu but didn’t get any further, and google didn’t throw up any error messages that looked like this one, mostly people had broken dot commands and mine worked fine.
Further investigation showed that I needed to uncomment the relevant lines from the config file:
//These are good for linux and its derivatives.
$_xhprof['dot_binary'] = '/usr/bin/dot';
$_xhprof['dot_tempdir'] = '/tmp';
$_xhprof['dot_errfile'] = '/tmp/xh_dot.err';
I didn’t edit the lines, these just worked on my system … once I realised I needed them! Hope this helps someone else, I have always liked XHProf and XHGUI wraps it up into a complete package – many thanks to its creator, Paul Reinheimer for making this so easy for normal people to use!
Thankyou, very useful piece of information.
Pingback: PHP Master | The Need for Speed: Profiling with XHProf and XHGui
Four and a half years later and the post is still saving people time. :)
Thanks @lornajane
Pingback: The Need for Speed: Profiling PHP with XHProf and XHGui — SitePoint