Skip to content

Instantly share code, notes, and snippets.

@JohnAlbin
Forked from vlemaire/xhprof.rb
Created January 25, 2012 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnAlbin/1674080 to your computer and use it in GitHub Desktop.
Save JohnAlbin/1674080 to your computer and use it in GitHub Desktop.
Homebrew Formula for xhprof
require 'formula'
class Xhprof < Formula
url 'http://pecl.php.net/get/xhprof-0.9.2.tgz'
homepage 'http://pecl.php.net/package/xhprof'
md5 'ae40b153d157e6369a32e2c1a59a61ec'
def install
Dir.chdir "xhprof-#{version}/extension" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install %w(modules/xhprof.so)
end
end
def caveats; <<-EOS.undent
To finish installing xhprof:
* Add the following lines to php.ini:
[xhprof]
extension="#{prefix}/xhprof.so"
xhprof.output_dir="/tmp/xhprof"
* Restart your webserver.
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment