|
Author |
Message |
GunstarHero
Junior WebHelper
Joined: 15 Apr 2003
Posts: 35
|
Posted:
Wed May 07, 2003 2:45 pm (21 years, 1 month ago) |
|
Hi all,
I like the code at the bottom of the page:
Quote: | [ Page generation time: 0.491062 seconds ] :: [ 15 queries executed ] |
How can I implement this for my site? I just want to use it to test how fast pages/queries are executed on my server.
Any pointers are much appreciated!
Cheers,
Anil |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed May 07, 2003 3:01 pm (21 years, 1 month ago) |
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Wed May 07, 2003 3:07 pm (21 years, 1 month ago) |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed May 07, 2003 3:10 pm (21 years, 1 month ago) |
|
There's a very complete statistics script somewhere at phpBB.com and it includes a smilies stats section.
As to executed queries, either your database abstraction layer takes care of it, or you increment a variable everytime you run a query:
Code: | $i = !$i ? 0 : $i;
$i++; |
[The database abstraction layer (at least phpBB's) will usually take care of this for you. If it doesn't, all you do is edit the function which runs the query and add a variable to count queries.] |
________________________________
|
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Wed May 07, 2003 3:19 pm (21 years, 1 month ago) |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed May 07, 2003 3:22 pm (21 years, 1 month ago) |
|
|
|
|
GunstarHero
Junior WebHelper
Joined: 15 Apr 2003
Posts: 35
|
Posted:
Wed May 07, 2003 5:59 pm (21 years, 1 month ago) |
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.133791 seconds :: 13 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |