Debug::backtrace() Debug::backtrace() Debug::backtrace(array $options = []) | array string | Return a backtrace array that is simpler and more PW-specific relative to PHP’s debug_backtrace | |
Debug::getAll() Debug::getAll() Debug::getAll() | array | Get all active timers in array with timer name (key) and start time (value) | |
Debug::getSavedTimer() Debug::getSavedTimer(string $key) Debug::getSavedTimer(string $key) | string | Return the time recorded in the saved timer $key | |
Debug::getSavedTimers() Debug::getSavedTimers() Debug::getSavedTimers() | array | Return all saved timers in associative array indexed by key | |
Debug::removeAll() Debug::removeAll() Debug::removeAll() | (nothing) | Remove all active timers | |
Debug::removeSavedTimer() Debug::removeSavedTimer(string $key) Debug::removeSavedTimer(string $key) | (nothing) | Remove a previously saved timer | |
Debug::removeSavedTimers() Debug::removeSavedTimers() Debug::removeSavedTimers() | (nothing) | Remove all saved timers | |
Debug::removeTimer() Debug::removeTimer(string $key) Debug::removeTimer(string $key) | (nothing) | Remove a timer completely | |
Debug::resetTimer() Debug::resetTimer(string $key) Debug::resetTimer(string $key) | string int | Reset a timer so that it starts timing again from right now | |
Debug::saveTimer() Debug::saveTimer(string $key) Debug::saveTimer(string $key, string $note = '') | bool string | Save the current time of the given timer which can be later retrieved with getSavedTimer($key) | |
Debug::startTimer() Debug::startTimer() Debug::startTimer(string $key = '') | string | Start a new timer | |
Debug::stopTimer() Debug::stopTimer() Debug::stopTimer(string $key = '', $option = null, bool $clear = true) | string | Get elapsed time for given timer and stop | |
Debug::timer() Debug::timer() Debug::timer(string $key = '', bool $reset = false) | string int | Measure time between two events | |
Debug::timerSetting() Debug::timerSetting(string $key) Debug::timerSetting(string $key, $value = null) | mixed | Get or set timer setting | |
Debug::toStr() Debug::toStr($value) Debug::toStr($value, array $options = []) | string | Dump any variable to a debug string | |