Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vbMicroStats: page load time, queries, GZIP and PHP version Details »»
vbMicroStats: page load time, queries, GZIP and PHP version
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-06-2002 Last Update: Never Installs: 594
 
No support by the author.

[high]Looking for VB3 version? Is here.[/high]

This hack will add at the bottom of each vBulletin(powered) page the following stats:

- load time of specified page in microseconds (with custom no. of digits to show)
- number of queries executed
- server GZIP library compression status
- vBulletin DEBUG mode
- PHP version
- PHP percent page usage
- MySQL percent page usage
- Server Load
[high]This is not only estethic, it will also help you troubleshoot any wierd queries that you have in your scripts.
The hack is template based so you can edit it the way you want in few seconds.[/high]
NOTE: From users experiences, this hack will work only with PHP 4.0.6 or higher. Let me know if it works with a lower PHP version.

THE FIX FOR VB2.3.0 IS HERE.

HACK UPDATES
Version 2.1
------------------------------------
Changes:
- added Server Load

NOTE: I spoked with Kevin 'tubedogg' from vBulletin Support team and he explained to me that not all the servers are configured to support the [high]@exec("uptime")[/high].
Contact your host for more details and ask them about this issue.
For a full explanation of your 3 server load values, read more here.

*If you want to have the stats viewable only by admins, read this post.

Version 2.0
------------------------------------
Changes:
- added vBulletin DEBUG Mode
- removed the Details link
- cleaned a little the code to match VB2.2.6
- better explanations into the install file.

Version 1.7
------------------------------------
[high]VB2.2.5:[/high]
Minor change in admin/db_mysql.php. Read more here on how to update your hack.
Minor change in forum/global.php. Read more here on how to update your hack.

Changes:
- corrected negative values on certain servers.

Version 1.6
------------------------------------
Changes:
- PHP version and GZIP library status viewable only to admin.
- added a link to Detailed Stats View (generated by vBulletin), for that specific page. Only admins can view that link.

To see how it looks a Detailed View, click here.

Version 1.5
------------------------------------
Added:
- GZIP library status is now related to your vBulletion options.
- GZIP library compression level.

Version 1.4
------------------------------------
Bugs corrected:
- GZIP library status not displayed properly on certain servers.

Version 1.3
------------------------------------
Bugs corrected:
- vbPortal display code in modules

The hack is template based now.
All you have to do is call it with the {getmicrostats} string, anywhere you want (for example in footer).
You also have the choice to install it as template based or coded directly into your functions.php file.

Version 1.2
------------------------------------
Added the PHP and MySQL page percentage.
(Addon by Chen 'FireFly' Avinadav)

Version 1.1
------------------------------------
vB.org decided to add this hack to their board.

Bugs corrected:
- incorrect time load
- incorrect query count


You like this hack? Please click on the [high]Install[/high] button.
To download the latest version of this hack, click below:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #532  
Old 07-27-2002, 12:26 AM
Keith Keith is offline
 
Join Date: Jan 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also hoping someone might be able to explain the numbers in serverload.

i.e., [Server Load: 0.70 » 0.64 : 0.58]
Reply With Quote
  #533  
Old 07-27-2002, 10:30 AM
jassim jassim is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes , Nakkid
the URL is http://arabna.com
Reply With Quote
  #534  
Old 07-27-2002, 11:05 AM
jassim jassim is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont know How :surprised:
i only replay one time :cheeky:
Reply With Quote
  #535  
Old 07-27-2002, 11:07 AM
jassim jassim is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Keith
there is a problem i only see 27 pages when i replay and after replay i see 36 pages and i dont see ypure replay
i thing there is probelm
Reply With Quote
  #536  
Old 07-27-2002, 06:45 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Keith
Nakkid, great hack man. I've read all 36 pages, just about twice now but still having 1 problem. By the way, THANK YOU for putting the links to special probs like the db_mysql and a couple others on the first page, really was a big help.

I've been through the db_mysql file several times now, and still getting some wierd issues like 1,027,731,445.53708601 seconds (100.00% PHP - 0.00% MySQL) with 40 queries.

I have 2.2.5, and using the the db_mysql patch until I can upgrade to 2.2.6. That's the file I've edited. So what am I missing?


P.S. This is the link to the patch for 2.2.5 forums
keith, the prob you have there is editing the wrong global.php file and also editing incorrect the db_mysql.php. edit the db_mysql.php 225 version, the changes are the same as in 226. let me know what is wrong.

Quote:
Originally posted by jassim
yes , Nakkid
the URL is http://arabna.com
ok from what i see jassim is that you switch from UBB to VB. however in your localhost, you cannot have only 6 queries because the lowest number of queries on a vb page is 9. make sure you install properly first VB in your localhost. if you have probs, follow this tutorial i made:
https://vborg.vbsupport.ru/showthrea...threadid=39482
Reply With Quote
  #537  
Old 07-27-2002, 06:53 PM
proxyMX's Avatar
proxyMX proxyMX is offline
 
Join Date: Jun 2002
Location: Seven of Nine is hot! :do
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uhm quadrizaiple posting is totally not legal
Reply With Quote
  #538  
Old 07-27-2002, 06:54 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is probably from the auto email answer. dont worry he will delete them.
keith, when you view the thread, simply click on Edit and delete those double posts.
it will save a mod's time.
Reply With Quote
  #539  
Old 07-27-2002, 07:34 PM
Keith Keith is offline
 
Join Date: Jan 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First, my apologies to the mod's and Nakkid, and any others subscribing to the thread. I recently changed my email address in the profile to one that has an auto responder. The subscription option and auto email response wound up in a loop, resulting in umteensome identical posts for about 3 pages. I've now deleted them, and changed email address back.

Second, if you're getting unusually high stat numbers like others listed here (me included) or 100% PHP stats and 0% MySQL, and no matter HOW SURE you are that you've edited the right files, before you post anything, start over again!! You've hacked the wrong global.php file (there are 2 found in the directories), or the wrong db_mysql.php file. Reload the originals, try it again.

Or you've copied and pasted additional characters from the instructions file that do not belong in the php file.

Third, backup and rename your original files (db_mysql.php, functions.php and global.php) so you'll be able to start over again. As I read this forum thread, I saw how many members had hacked the wrong files. I was CERTAIN I had not made that mistake. Yes, hacking at 1AM is not a good idea. Start over before posting the same stupid situation/question like I did, it was silly and should have known better.

Sorry for having asked the same question that's been answered over and over and over. I'd rather Nakkid be heads down, butt in seat, fingers on keyboard, coming up with more great hacks.
Reply With Quote
  #540  
Old 07-27-2002, 07:37 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Keith
Also hoping someone might be able to explain the numbers in serverload.
i.e., [Server Load: 0.70 ? 0.64 : 0.58]
read more here. hope that helps.
about the wrong editing, dont worry. as i said before, i do similar errors me to, as everyone else on this board.
Reply With Quote
  #541  
Old 07-28-2002, 02:13 AM
FrankR310 FrankR310 is offline
 
Join Date: Jun 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the hack; just what i needed.

a couple of questions:

1) i get 8 queries in my calendar; did i do something wrong? i see that minimum is 9 for vb pages.

2) why does vb have higher query numbers than some of the other boards i have seen?

thanks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:06 PM.


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.06549 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete