-
Use Homebrew
- Make sure homebrew/php55 or php56 has been tapped.
- brew update
- brew install php56-xhprof
-
Symlink xhprof.so to MAMP
- ln -s /usr/local/Cellar/php56-xhprof/254eb24/xhprof.so /Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so
-
Edit php.ini file
-
At the very bottom, add
[xhprof]
extensions = xhprof.so
xhprof.output_dir=/tmp/xhprof
-
-
Restart MAMP
-
Enable / Install level and xhprof
- drush en devel xhprof -y
-
Check PHP Info
- drupal-site/devel/phpinfo
- CMD+F for “xhprof“
-
Winning.
How to install XHProf with MAMP and Drupal 7
At the very bottom, add
Kyle Taylor
1 min read
drupalmampperformanceprofiling