phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Phpgroupware-users] 0.9.14RC4 much slower


From: Hsing-Foo Wang
Subject: RE: [Phpgroupware-users] 0.9.14RC4 much slower
Date: Sat, 27 Jul 2002 11:54:43 +0200

Thanks Chris. It works nicely.

No this is interesting, I installed php-accelerator just to see if it
would work.

And it did ;-) it does speed things up, since you can measure it with
the 'chris-hack'

http://www.php-accelerator.co.uk

Regards,
Hsing-Foo

> Onderwerp: Re: [Phpgroupware-users] 0.9.14RC4 much slower
> 
> 
> if you guys are interested in a little performance monitoring hack:
> 
> edit header.inc.php and add the following to the top of the 
> file: function perfgetmicrotime(){
>     list($usec, $sec) = explode(" ",microtime());
>     return ((float)$usec + (float)$sec);
>     }
> 
> $perf_starttime = perfgetmicrotime();
> 
> 
> Then edit phpgwapi/inc/footer.inc.php and this to the end, 
> right before the last ?>: global $perf_starttime; 
> $perf_stoptime = perfgetmicrotime(); echo 'Page loaded in ' . 
> ($perf_stoptime - $perf_starttime) . ' seconds.';
> 
> This will give you the number of seconds that it took to 
> process everything phpgw does for any page that properly 
> calls the footer (which is most every page).
> 
> I know it's a hack, but it's not meant to be permanent.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]