One True Debug Switch
git-svn-id: file:///home/shish/svn/shimmie2/trunk@410 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
278ce1e71a
commit
6a38e7f6f2
@ -224,7 +224,6 @@ function get_base_href() {
|
|||||||
function get_debug_info() {
|
function get_debug_info() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if($config->get_bool('debug_enabled')) {
|
|
||||||
if(function_exists('memory_get_usage')) {
|
if(function_exists('memory_get_usage')) {
|
||||||
$i_mem = sprintf("%5.2f", ((memory_get_usage()+512)/1024)/1024);
|
$i_mem = sprintf("%5.2f", ((memory_get_usage()+512)/1024)/1024);
|
||||||
}
|
}
|
||||||
@ -244,10 +243,7 @@ function get_debug_info() {
|
|||||||
global $_execs;
|
global $_execs;
|
||||||
$debug = "<br>Took $i_utime + $i_stime seconds and {$i_mem}MB of RAM";
|
$debug = "<br>Took $i_utime + $i_stime seconds and {$i_mem}MB of RAM";
|
||||||
$debug .= "; Used $i_files files and $_execs queries";
|
$debug .= "; Used $i_files files and $_execs queries";
|
||||||
}
|
|
||||||
else {
|
|
||||||
$debug = "";
|
|
||||||
}
|
|
||||||
return $debug;
|
return $debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user