Index: trunk/core/kernel/utility/debugger.php
===================================================================
diff -u -N -r8413 -r8436
--- trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 8413)
+++ trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 8436)
@@ -104,7 +104,7 @@
*
* @param string $ip_list semi-column (by default) separated ip address list
* @param string $separator ip address separator (default ";")
- *
+ *
* @return bool
*/
function ipMatch($ip_list, $separator = ';')
@@ -117,10 +117,10 @@
break;
}
}
-
+
return $ip_match;
}
-
+
/**
* Set's default values to constants debugger uses
*
@@ -265,16 +265,16 @@
{
$dump_mode = 'var_dump';
$dumpVars = func_get_args();
-
+
if ($dumpVars[count($dumpVars) - 1] === 'STRICT') {
$dump_mode = 'strict_var_dump';
array_pop($dumpVars);
}
-
+
foreach ($dumpVars as $varValue) {
$this->Data[] = Array('value' => $varValue, 'debug_type' => $dump_mode);
}
-
+
}
function prepareHTML($dataIndex)
@@ -299,7 +299,7 @@
case 'strict_var_dump':
return $this->highlightString( var_export($Data['value'], true) );
break;
-
+
case 'trace':
ini_set('memory_limit', '500M');
$trace =& $Data['trace'];
@@ -344,19 +344,29 @@
$total = $this->ProfilerTotals[$totals_key];
$div_width = Array();
- $total_width = ($this->getWindowWidth()-10);
+ $total_width = ($this->getWindowWidth() - 10);
$div_width['before'] = round(($total_before / $total) * $total_width);
$div_width['current'] = round(($runtime / $total) * $total_width);
$div_width['left'] = round((($total - $total_before - $runtime) / $total) * $total_width);
$ret = 'Name: '.$Data['description'].'
';
+ $additional = isset($Data['additional']) ? $Data['additional'] : Array ();
if (isset($Data['file'])) {
+ array_unshift($additional, Array('name' => 'File', 'value' => $this->getFileLink($Data['file'], $Data['line'], basename($Data['file']).':'.$Data['line'])));
+ }
+ array_unshift($additional, Array('name' => 'Runtime', 'value' => $runtime.'s'));
+
+ foreach ($additional as $mixed_param) {
+ $ret .= '['.$mixed_param['name'].': '.$mixed_param['value'].'] ';
+ }
+
+ /*if (isset($Data['file'])) {
$ret .= '[Runtime: '.$runtime.'s] [File: '.$this->getFileLink($Data['file'], $Data['line'], basename($Data['file']).':'.$Data['line']).']
';
}
else {
- $ret .= 'Runtime: '.$runtime.'s
';
- }
+ $ret .= 'Runtime: '.$runtime.'s
';
+ }*/
$ret .= '