Changeset 885
- Timestamp:
- 02/16/08 15:13:26 (10 months ago)
- Files:
-
- bb-benchmark/trunk/_bb-benchmark.php (modified) (4 diffs)
- bb-benchmark/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-benchmark/trunk/_bb-benchmark.php
r876 r885 6 6 Author: _ck_ 7 7 Author URI: http://bbShowcase.org 8 Version: 0.1 88 Version: 0.19 9 9 10 10 License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ … … 27 27 0.17 : double dashes break html comments and make them visible -- replaced as - - 28 28 0.18 : add hook to admin panel for plugin admin testing 29 0.19 : bug fix to hide output in some different situations 29 30 */ 30 31 31 32 function bb_benchmark_output() { 32 //if (bb_current_user_can( 'administrate' ) ) :33 if (bb_current_user_can( 'administrate' ) ) : 33 34 $timer_stop=bb_timer_stop(0); 34 35 global $bbdb; 35 36 36 echo " <!-- \n === benchmark & query results === \n\n";37 echo " <!-- \n === benchmark & query results === \n\n"; 37 38 38 39 if (function_exists("shell_exec") && $test=@shell_exec("uptime")) {echo $test."\n\n";} … … 50 51 51 52 echo "total query count: ".$bbdb->num_queries." \n\n"; 52 echo "To see full bb-benchmark results here put the following line into your config.php\ndefine('SAVEQUERIES', true);\n\n --> ";53 echo "To see full bb-benchmark results here put the following line into your config.php\ndefine('SAVEQUERIES', true);\n\n --> "; 53 54 54 55 else : … … 81 82 } echo "\n".count($included_files)." files, ".round($totalsize/1024,2)." Kb\n"; 82 83 83 echo " -->";84 echo " --> "; 84 85 85 86 endif; 86 87 87 //endif;88 endif; 88 89 } 89 90 add_action('bb_foot', 'bb_benchmark_output'); bb-benchmark/trunk/readme.txt
r876 r885 1 1 === bbPress Benchmark === 2 Tags: performance, speed, benchmark, mysql, queries, cache, caching, fast, faster, _ck_2 Tags: _ck_, performance, speed, benchmark, mysql, queries, cache, caching, faster 3 3 Contributors: _ck_ 4 4 Requires at least: 0.8 … … 62 62 * 0.17 : double dashes break html comments and make them visible -- replaced as - - 63 63 * 0.18 : added hook to admin panel for plugin admin testing 64 64 * 0.19 : important bug fix to hide output again in certain situations
