Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created October 22, 2011 22:28
Show Gist options
  • Save msonnabaum/1306569 to your computer and use it in GitHub Desktop.
Save msonnabaum/1306569 to your computer and use it in GitHub Desktop.
install xhprof on mamp for php 5.3
wget http://pecl.php.net/get/xhprof-0.9.2.tgz
tar -xzf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension
/Applications/MAMP/bin/php/php5.3.6/bin/phpize
./configure
make
cp modules/xhprof.so $(/Applications/MAMP/bin/php/php5.3.6/bin/php-config --extension-dir)/
echo "extension=xhprof.so" >> /Applications/MAMP/bin/php/php5.3.6/conf/php.ini
@cam8001
Copy link

cam8001 commented May 24, 2013

I have pre-compiled binaries here: https://github.com/cam8001/php-xhprof-mamp

@kepol
Copy link

kepol commented Jan 27, 2014

I got the same output as jessebeach even after configuring the MAMP Server components and libraries, but xhprof works all the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment