The Profiler extension contains functions for finding performance bottlenecks in PHP code. The extension is one core piece of functionality for the Tideways Profiler Platform. It solves the problem of efficiently collecting, aggregating and analyzing the profiling data when running a Profiler in production.
- PHP 5.3, 5.4, 5.5, 5.6 or 7.0
- cURL and PCRE Dev Headers (
apt-get install libcurl4-openssl-dev libpcre3-dev
) - Tested with Linux i386, amd64 architectures
You can install the Tideways extension from source or download pre-compiled binaries from the Tideways Downloads page.
Building from source is straightforward:
git clone https://github.com/tideways/php-profiler-extension.git
cd php-profiler-extension
phpize
./configure
make
sudo make install
You also need the latest Tideways.php
if you want to use the Profiler in combination with our daemon and UI.
Download the file from Github. Put this file into your
extension directory. You can find the location by calling:
$ php -r 'echo ini_get("extension_dir")."\n";'
$ cp Tideways.php /path/to/php/lib
Afterwards you need to enable the extension in your php.ini:
extension=tideways.so
tideways.api_key=set your key
Important: If you don't want to use Tideways platform, just as a XHPROF alternative, you should also add the following ini configuration to your php.ini:
extension=tideways.so
tideways.auto_prepend_library=0
You can find the documentation on the Tidways Profiler website.