Hi all, I remember at OSCON 2005 there was talk of adding DTrace probes to PHP (in fact, I have a photo of Bryan and Wes working on it!). Did they ever get into the upstream branch, ''cause I don''t recall seeing a --enable-dtrace (or similar) configuration option when I recently built PHP 5.2.1. If not, is there an ETA? TIA, -- Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com
Hi Rich: This has been implemented as a PEAR module. You need to # pear install dtrace or # pecl install dtrace then add extension=dtrace.so? to the php.ini file See Wez Furlong''s blog http://netevil.org/node.php?uuid=42f82a8b-09b7-5013-1667-2f82a8b24ead and Bryan''s blog. http://blogs.sun.com/bmc/entry/dtrace_and_php_demonstrated For more details. -Angelo Rich Teer wrote:> Hi all, > > I remember at OSCON 2005 there was talk of adding DTrace probes > to PHP (in fact, I have a photo of Bryan and Wes working on it!). > Did they ever get into the upstream branch, ''cause I don''t recall > seeing a --enable-dtrace (or similar) configuration option when > I recently built PHP 5.2.1. If not, is there an ETA? > > TIA, > >
http://blogs.sun.com/ontherecord/entry/dtrace_screencasts - Terri Molini Sun Microsystems, Inc. Global Communications 408/404-4976 office/fax; x6-9968 408/406-9021 mobile IM: tmolini -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070307/bcff7607/attachment.html>
Hi Angelo, since which PHP version is the extension included ? przemol On Wed, Mar 07, 2007 at 02:23:45PM -0500, Angelo Rajadurai wrote:> Hi Rich: > > This has been implemented as a PEAR module. > > You need to > # pear install dtrace > or > # pecl install dtrace > then add > extension=dtrace.so? > to the php.ini file > > See > Wez Furlong''s blog > > http://netevil.org/node.php?uuid=42f82a8b-09b7-5013-1667-2f82a8b24ead > > and Bryan''s blog. > http://blogs.sun.com/bmc/entry/dtrace_and_php_demonstrated > > For more details. > > -Angelo > > Rich Teer wrote: > >Hi all, > > > >I remember at OSCON 2005 there was talk of adding DTrace probes > >to PHP (in fact, I have a photo of Bryan and Wes working on it!). > >Did they ever get into the upstream branch, ''cause I don''t recall > >seeing a --enable-dtrace (or similar) configuration option when > >I recently built PHP 5.2.1. If not, is there an ETA? > > > >TIA, > > > > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org---------------------------------------------------------------------- Zobacz premiery salonu w Genewie (wideo)! zobacz >> http://link.interia.pl/f1a29
Hi Przemol: Not sure what versions are supported. The module was developed way back in Aug of 2005 so I''m pretty sure the support would go back. Just note that this is not "included" in PHP It is implemented as a ZEND extension. So you need to follow the steps I outlined below. -Angelo przemolicc at poczta.fm wrote:> Hi Angelo, > > since which PHP version is the extension included ? > > przemol > > On Wed, Mar 07, 2007 at 02:23:45PM -0500, Angelo Rajadurai wrote: > >> Hi Rich: >> >> This has been implemented as a PEAR module. >> >> You need to >> # pear install dtrace >> or >> # pecl install dtrace >> then add >> extension=dtrace.so? >> to the php.ini file >> >> See >> Wez Furlong''s blog >> >> http://netevil.org/node.php?uuid=42f82a8b-09b7-5013-1667-2f82a8b24ead >> >> and Bryan''s blog. >> http://blogs.sun.com/bmc/entry/dtrace_and_php_demonstrated >> >> For more details. >> >> -Angelo >> >> Rich Teer wrote: >> >>> Hi all, >>> >>> I remember at OSCON 2005 there was talk of adding DTrace probes >>> to PHP (in fact, I have a photo of Bryan and Wes working on it!). >>> Did they ever get into the upstream branch, ''cause I don''t recall >>> seeing a --enable-dtrace (or similar) configuration option when >>> I recently built PHP 5.2.1. If not, is there an ETA? >>> >>> TIA, >>> >>> >>> >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org >> > > ---------------------------------------------------------------------- > Zobacz premiery salonu w Genewie (wideo)! > zobacz >> http://link.interia.pl/f1a29 > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
[looks like my other email address can''t send to this list, so resending from one that probably can] I believe that Bryan was looking at making some dtrace changes to facilitate bridging the C and PHP level call stacks so that a more true and complete overview of the actual call stack. I think we both got busy and distracted with other projects though, so I don''t know the status of that. He kept telling me that there were some really ugly parts to it, so I had to content myself with copy-n-paste of the output from Bryan''s gnome-terminal. :) The dtrace implementation for php is as an installable module so that it can be retroactively fitted into PHP 4 (we don''t typically add new things to stable branches). The module approach introduces a little bit of overhead; if there is strong demand I can lobby for putting the probes into the core. I''ve had 2 people report issues getting the probes to be visible; I don''t know those 2 represent 100% of the people that have tried to use it (PHP + Solaris isn''t the most popular combination, judging by bug reports at bugs.php.net), so I''m interested to hear if you experience issues with it. --Wez. On Mar 7, 2007, at 2:36 PM, Wez Furlong wrote:> "pecl install dtrace" > > should pull the package from the pecl repository, build and install > it. > To enable it, you need to add: > > extension=dtrace.so > > to your php.ini file. > > --Wez. > > On Mar 7, 2007, at 2:21 PM, Rich Teer wrote: > >> Hi all, >> >> I remember at OSCON 2005 there was talk of adding DTrace probes >> to PHP (in fact, I have a photo of Bryan and Wes working on it!). >> Did they ever get into the upstream branch, ''cause I don''t recall >> seeing a --enable-dtrace (or similar) configuration option when >> I recently built PHP 5.2.1. If not, is there an ETA? >> >> TIA, >> >> -- >> Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member >> >> CEO, >> My Online Home Inventory >> >> Voice: +1 (250) 979-1638 >> URLs: http://www.rite-group.com/rich >> http://www.myonlinehomeinventory.com >> _______________________________________________ >> dtrace-discuss mailing list >> dtrace-discuss at opensolaris.org >
On Thu, 8 Mar 2007, Angelo Rajadurai wrote:> Just note that this is not "included" in PHP It is implemented as a > ZEND extension. So you need to follow the steps I outlined below.I''m no PHP expert, so please escuse the potentially naive question: is there a reason why DTrace support isn''t a compile time option, like it is with, say, Postgres? -- Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com
Technically, it''s not a zend extension, it''s a php extension. I''ve already explain why this is in previous emails, perhaps they are all being filtered? --Wez. On Mar 8, 2007, at 12:47 PM, Rich Teer wrote:> On Thu, 8 Mar 2007, Angelo Rajadurai wrote: > >> Just note that this is not "included" in PHP It is implemented as a >> ZEND extension. So you need to follow the steps I outlined below. > > I''m no PHP expert, so please escuse the potentially naive question: > is there a reason why DTrace support isn''t a compile time option, > like it is with, say, Postgres? > > -- > Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member > > CEO, > My Online Home Inventory > > Voice: +1 (250) 979-1638 > URLs: http://www.rite-group.com/rich > http://www.myonlinehomeinventory.com > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
On Wed, 7 Mar 2007, Wez Furlong wrote:> and while I wait for a build, a slightly less terse follow up ... :) > > The dtrace implementation for php is as an installable module so that it can > be retroactively fitted into PHP 4 (we don''t typically add new things to > stable branches).Fair enough.> The module approach introduces a little bit of overhead; if there is strong > demand I can lobby for putting the probes into the core.Please add my name to the list of demanders^Wrequesters!> I''ve had 2 people report issues getting the probes to be visible; I don''t know > those 2 represent 100% of the people that have tried to use it (PHP + Solaris > isn''t the most popular combination, judging by bug reports at bugs.php.net), > so I''m interested to hear if you experience issues with it.Will do. -- Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member CEO, My Online Home Inventory Voice: +1 (250) 979-1638 URLs: http://www.rite-group.com/rich http://www.myonlinehomeinventory.com