cd /Applications/AMPPS/www
git clone https://github.com/longxinH/xhprof
cd xhprof/extension
phpize
CFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure
make
make install
Add at end of file:
/Applications/AMPPS/php-7.1/etc/php.ini
[xhprof]
extension="{$path}/php-7.1/lib/extensions/no-debug-non-zts-20160303/xhprof.so"
xhprof.output_dir=/tmp/xhprof
http://localhost/cgi-bin/phpinfo.cgi
https://wordpress.org/plugins/wp-xhprof-profiler/
(Restart Apache if Plugin can not load xhprof
extension.
brew install graphviz