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: Chris Weiss
Subject: Re: [Phpgroupware-users] 0.9.14RC4 much slower
Date: Fri, 26 Jul 2002 18:39:21 +0000

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.


test test (address@hidden) wrote*:
>
>Hsing-Foo,
>
>Just Curious, what kind of response time are you
>getting now that you've made the change?  What is the
>speed of your processor?
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>_______________________________________________
>Phpgroupware-users mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>




reply via email to

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