Re: Profiling with register_tick_function / declare
| From: | Jochem Maas | 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. ...
I suppose that includes xdebug?. Get profile results for novices without having to mess aroundinstalling php binaries such as APD / zend debugger etc
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?. Profile on demand on production servers without having to installa resource intensive debugging module
Any help greatly appreciated. Thanks, Scott McNaught