News Feed
Sections




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

David Parra:
Probing PHP with Systemtap on Linux
December 05, 2012 @ 10:41:30

David Parra has a new post to his site today about a method of using Systemtap to profile PHP as the code executes (as an alternative when DTrace may not be available.

PHP introduced DTrace support with PHP 5.3, enabling probing points in the PHP executable that can be used to simplify probing of PHP applications without having to the PHP implementation details. We enabled probes on function calls, file compilation, exceptions and errors. But this has always been limited to the operating systems that support DTrace. With the popularity of DTrace, Systemap programmers decided to add a DTrace compatibility layer that allows to use DTrace probes as Systemtap probing points as well.

Thanks to a recent commit to the PHP 5.5 branch, your PHP installation (compiled with DTrace support) can be executed with the "stap" command and searched for probe points. He includes a simple Systemtap script that counts the calls of a specific function to get you started.

0 comments voice your opinion now!
probe profile systemtap dtrace compile tutorial


blog comments powered by Disqus

Similar Posts

Lorna Mitchell's Blog: Retrieving Data from Google Analytics API using PHP

DevShed: Using the spl_autoload() Functions to Build Loader Apps in PHP

Lorna Mitchell: Running Multiple Versions of PHP

A Cloudy Place: PHP and Git on AWS Elastic Beanstalk

Padraic Brady's Blog: Example Zend Framework Blog Application Tutorial - Part 9 PDF Download


Community Events





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


symfony introduction release list community bugfix tips laravel series code zendserver podcast conference threedevsandamaybe voicesoftheelephpant deployment api framework language interview

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