PHP 5.3.99-dev and DTrace Part I
For those not following the PHP development. We backported the DTraces probes from the abandoned PHP 6.0 branch, back to the new trunk PHP 5.3.99-dev. It is called 5.3.99 because the PHP dev community has not decided yet on a version number (5.4 or 6.0).
To compile PHP with DTrace, on Solaris or Mac OS do:
$ svn co http://svn.php.net/repository/php/php-src/trunk php $ cd php $ ./buildconf --force $ ./configure --enable-dtrace $ make
To check if your PHP has DTraces probes enabled, you can check the phpinfo() using
$ php -i | grep DTrace
or use DTrace directly>
$ sudo dtrace -ln 'php*:::' -c 'php -m' 88836 php4614 php dtrace_compile_file compile-file-entry 88837 php4614 php dtrace_compile_file compile-file-return 88838 php4614 php zend_error error 88839 php4614 php ZEND_CATCH_SPEC_CONST_CV_HANDLER exception-caught 88840 php4614 php zend_throw_exception_internal exception-thrown 88841 php4614 php dtrace_execute_internal execute-entry 88842 php4614 php dtrace_execute execute-entry 88843 php4614 php dtrace_execute_internal execute-return 88844 php4614 php dtrace_execute execute-return 88845 php4614 php dtrace_execute function-entry 88846 php4614 php dtrace_execute function-return 88847 php4614 php php_request_shutdown request-shutdown 88848 php4614 php php_request_startup request-startup
Have fun with DTrace in PHP.
A few examples will follow in the next days.