dev-master
9999999-devA Silverstripe module for facilitating profiling with XHProf
Apache License
The Requires
- php >=5.3.2
- silverstripe/framework 3.*
- silverstripe/cms 3.*
dev silverstripe profiling xhprof
A Silverstripe module for facilitating profiling with XHProf
A Silverstripe module for facilitating profiling with XHProf., (*1)
Since the Silverstripe 3 release, Silverstripe's built-in profiling has been disabled (see this thread). Thus, this module has sprung out of neccesity for profiling in Silverstripe 3., (*2)
This is a fork from the XHProf PHP compiler, open sourced by Facebook in 2009. It has been amended for easy integration with Silverstripe as well as installation instructions in this readme., (*3)
XHProf needs to be installed and running on your system for this module to work. Once XHPprof has been installed, follow the following steps:, (*4)
xhprof
/framework/main.php
, adding the following lines at the very top (under <?php
), and at the very bottom:include "../xhprof/_includes/header.php";
include "../xhprof/_includes/footer.php";
Profiler output
link on the very bottom of your siteOn an *nix machine with PECL installed, follow this instruction:, (*5)
[sudo] pecl config-set preferred_state beta
[sudo ] pecl install xhprof
php.ini
file: [xhprof] extension=xhprof.so xhprof.output_dir="/var/tmp/xhprof"`
You might need to create the dirctory, (*6)
apt-get install graphviz
Beyond XHProf another PHP profiling solution would be using xDebug, combined with a visualizer, which would either be built-in to an IDE, or using the PHP-based Webgrind web interface., (*7)
A Silverstripe module for facilitating profiling with XHProf
Apache License
dev silverstripe profiling xhprof