Index: trunk/kernel/include/debugger.php =================================================================== diff -u -r3648 -r3685 --- trunk/kernel/include/debugger.php (.../debugger.php) (revision 3648) +++ trunk/kernel/include/debugger.php (.../debugger.php) (revision 3685) @@ -443,16 +443,24 @@ } } - function profileStart($key, $description) + function profileStart($key, $description = null) { $timeStamp = $this->getMoment(); - $this->ProfilerData[$key] = Array('begins' => $timeStamp, 'ends' => 5000, 'debuggerRowID' => count($this->Data), 'description' => $description); + $this->ProfilerData[$key] = Array('begins' => $timeStamp, 'ends' => 5000, 'debuggerRowID' => count($this->Data)); + if (isset($description)) { + $this->ProfilerData[$key]['description'] = $description; + } + $this->Data[] = array('profile_key' => $key, 'debug_type' => 'profiler'); } - function profileFinish($key) + function profileFinish($key, $description = null) { $this->ProfilerData[$key]['ends'] = $this->getMoment(); + + if (isset($description)) { + $this->ProfilerData[$key]['description'] = $description; + } } function profilerAddTotal($total_key, $key=null, $value=null)