Changeset 876

Show
Ignore:
Timestamp:
02/11/08 13:19:20 (10 months ago)
Author:
_ck_
Message:

hook added to also benchmark under admin panel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-benchmark/trunk/_bb-benchmark.php

    r668 r876  
    55Description: Prints simple benchmarks and mysql diagnostics, hidden in page footers for administrators. Based on Jerome Lavigne's Query Diagnostics for WordPress. 
    66Author: _ck_ 
    7 Author URI: http://CKon.WordPress.com 
    8 Version: 0.17 
    9 */ 
    10 /*  
    11 INSTRUCTIONS: 
     7Author URI: http://bbShowcase.org 
     8Version: 0.18 
    129 
     10License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     11 
     12Donate: http://amazon.com/paypage/P2FBORKDEFQIVM 
     13 
     14Instructions:  
    13151. put  define('SAVEQUERIES', true);   into your config.php 
    14162. install & activate plugin   (editing config.php no longer required) 
     
    1618 
    1719History: 
    18  
    19200.10    : first public release 
    20210.11    : improved load detection for php in safe mode or without shell access if using PHP5 
     
    25260.16    : better unnamed hook tracking so benchmark timer can be inserted almost anywhere 
    26270.17    : double dashes break html comments and make them visible -- replaced as - - 
     280.18    : add hook to admin panel for plugin admin testing 
    2729*/ 
    2830 
     
    8688} 
    8789add_action('bb_foot', 'bb_benchmark_output'); 
     90add_action('bb_admin_footer', 'bb_benchmark_output'); 
    8891 
    8992// global $bb_current_user;  if ($bb_current_user->data->bb_capabilities['keymaster']) :