Re: Profiling with register_tick_function / declare

From: Date: Fri, 08 Feb 2008 00:10:11 +0000
Subject: Re: Profiling with register_tick_function / declare
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268920@lists.php.net to get a copy of this message
McNaught, Scott schreef:
Hi there, Is it possible to make the declare(ticks=1) statement apply to *all* functions executed in a php script, regardless of scope?
is the declare() pragma not a file scope wotsit? i.e. you'd have to do declare(ticks=1); at the top of each file. ...
.         Get profile results for novices without having to mess around
installing php binaries such as APD / zend debugger etc
I suppose that includes xdebug?
.         Profile on demand on production servers without having to install
a resource intensive debugging module
does profiling need to be done in production at all? slow code is slow however you look at it no? so profiling something in a dev environment should show just as much info as anywhere else?
Any help greatly appreciated. Thanks, Scott McNaught


« previous php.general (#268920) next »