Re: Info about php script being executed from within function.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Info about php script being executed from within function.

From: R. Rajesh Jeba Anbiah <ng4rrjanbiah@rediffmail.com>
Date: Thu Aug 25 2005 - 15:30:59 CEST

Sandman wrote:
> Ok, not sure how I should explain this, but I'll give it a try.
>
> When a browser requests any given page from my webapp, it include()'s lots of
> other smaller scripts that has functions that does various stuff. This is
> probably how most of us do it.
>
> But, to measure and keep track of performance, I am using a little function
> that I call gauge() to keep control over the amount of time any given request
> took on my server.
   <snip>

   Don't reinvent the wheels <http://in.php.net/apd> Also, you can
*never* get reliable results with microtime and (pure) PHP based
benchmarks (except using the hooks like APD).

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com
Received on Mon Oct 24 02:09:31 2005