# DebugKitDebugger
When using the DebugKit Toolbar the default `Debugger` class is overloaded with `DebugKitDebugger`. This class provides benchmarking and timing features not found in CakePHP 1.2's core Debugger class.
## DebugKitDebugger methods
### Timing
DebugKitDebugger::startTimer($name = null, $message = '')
Starts a timer. If you leave `$name` null an anonymous timer will be created with the filename and line `DebugKitDebugger::startTimer()` was called from.
DebugKitDebugger::stopTimer($name = null)
Stops a running timer. Leaving `$name` null will close the first anonymous timer on the stack.
DebugKitDebugger::elapsedTime($name, $precision = 5)
Get the elapsed time for `$name` timer. Returns an integers with `$precision` decimal places.
DebugKitDebugger::getTimers()
Get all the timers times and messages.
DebugKitDebugger::clearTimers()
Clear all existing timers.
DebugKitDebugger::requestTime()
Returns the duration of the request at point called.
### Memory Use
DebugKitDebugger::getMemoryUse()
Retrieve the amount of memory used in bytes. Always returns 0 if `memory_get_usage()` is not available.
DebugKitDebugger::getPeakMemoryUse()
Retrieve the peak amount of memory used in bytes. Always returns 0 if `memory_get_peak_usage()` is not available.
### FirePHP debugger output.
With the DebugKitDebugger you can also redirect all Debugger messages to FirePHP. By calling `Debugger::output('fb');` You can redirect all debugger messages to Firebug. The messages can be found under the **console** tab in Firebug.
