vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Queries and Loadtime (in seconds) on footer... (https://vborg.vbsupport.ru/showthread.php?t=32892)

Crinos 12-03-2001 02:19 AM

1 Attachment(s)
I dunno if this had been suggested yet coz I didn't find it when I did a search (dunno if anyone even wanted it).

I like the way phpBB2 shows the info at the bottom of the forum containing the number of queries executed, as well as the time it took to load the page. It's can be a nice debug tool!

I was wondering if this was possible to do in vBulletin, wherein only administrators can see this info, while regular users and mods cannot ... Is this possible?

Check the attachment to see what I mean ... anyone up to it?

cditty 12-03-2001 02:26 AM

Looks cool. Might be usefull if we could turn it on and off though.

Chris

Crinos 12-04-2001 08:57 PM

~bump ;)

derfelix 12-05-2001 01:13 PM

this feature existed also in the 1.x versions of phpbb
when php 4 came out....
it was used to measure the spead gain with and without compression..... the code is so easy there is no point in calling it a hack....


in the page header: include somewhere
Code:



$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;

---------------------------

in the page footer:
include at the end
Code:

$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
printf("<center><font size=-2>Vbulletin Created this page in %f seconds.</font></center>", $totaltime);


SgtSling 12-06-2001 03:48 PM

include it how?

with what call?

Goldfinger 12-07-2001 02:21 AM

<?php code here ?>

SgtSling 12-07-2001 03:16 AM

Doesnt work

Breasts,
Sarge


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete