News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Jones:
Adding DTrace Probes to PHP Extensions
December 07, 2012 @ 09:35:09

In a new post to his site (related to the topic of this previous post) Chris Jones shows you how to setup and use DTrace support in your PHP installation for enhanced debugging abilities.

The powerful DTrace tracing facility has some PHP-specific probes that can be enabled with --enable-dtrace. DTrace for Linux is being created by Oracle and is currently in tech preview. Currently it doesn't support userspace tracing so, in the meantime, Systemtap can be used to monitor the probes implemented in PHP. This was recently outlined in David Soria Parra's post Probing PHP with Systemtap on Linux.

His examples are using the Oracle flavor of linux, but they should work for just about any unix-based system out there. He installs the tool via a yum package and compiles the latest PHP source with the "enable-dtrace" flag. He includes a simple script to connect to an Oracle database and shows the contents of the resulting "functrace.stp". He also shows how he added more "prodbes" (the points DTrace uses to profile) into the OCI8 extension for PHP (steps and source included).

0 comments voice your opinion now!
dtrace extension probe tutorial compile oci8 extension


blog comments powered by Disqus

Similar Posts

DevShed: Debugging Program Flow with the Xdebug Extension

Hasin Hayer's Blog: Converting standard wordpress into a SQLite powered multi user blogging platform

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will

Sebastian Nohn's Blog: PHP on Cruise - Assuring compatibility with new PHP versions

Zend Developer Zone: Paging Data Sets With PEAR Pager


Community Events











Don't see your event here?
Let us know!


performance composer podcast application language package introduction opinion overview install release symfony2 hack framework component database hhvm unittest facebook security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework