1 |
sudo yum install php-pecl-xhprof graphviz |
You’ll now need to have this module loaded in PHP; this varies depending on which handler you use:
1 2 |
sudo service restart php-fpm # if you're using PHP-FPM/FastCGI sudo service restart httpd # if you're using mod_php |
cd into wp-content/plugins
1 |
git clone https://github.com/Upstatement/xhprof-for-wordpress.git |
In wp-config.php:
1 |
define('PROFILE', true); |
In your admin dashboard, enable “WP XHProf Profiler” from the plugins section.
You will have “Profiler output” links at the very bottom of your page that’ll show you XHProf output.
Leave a Reply