Definition at line 27 of file Debug.php.
static Xmf\Debug::backtrace |
( |
|
$inline = false | ) |
|
|
static |
Display debug backtrace
- Parameters
-
boolean | $inline | force inline display if true, otherwise will attempt to use debug.log event |
- Returns
- mixed|string
Definition at line 95 of file Debug.php.
References Xoops\getInstance().
static Xmf\Debug::dump |
( |
|
$var, |
|
|
|
$inline = false |
|
) |
| |
|
static |
static Xmf\Debug::dumpQueuedTimers |
( |
|
$returnOnly = false | ) |
|
|
static |
dump and queued timer data and reset the queue
Note: The DebugBar logger will add any unprocessed queue data to its timeline automatically, if you use queued timers and don't call this.
- Parameters
-
boolean | $returnOnly | if true do not dump queue, only return it |
- Returns
- array of time data see ::$timerQueue
Definition at line 192 of file Debug.php.
Referenced by DebugbarLogger\__destruct().
static Xmf\Debug::startQueuedTimer |
( |
|
$name, |
|
|
|
$label = null |
|
) |
| |
|
static |
Start a queued timer. Queued timers are stored and only dumped by request. This makes them useful in recording timing when immediate output is not possible practical, such as early system startup activities. Timers can be queued at any point once the Xmf class can be loaded then dumped when system facilities are available.
- Parameters
-
string | $name | unique name for timer |
string | null | $label | optional label for this timer |
- Returns
- void
Definition at line 157 of file Debug.php.
References $name.
static Xmf\Debug::startTimer |
( |
|
$name, |
|
|
|
$label = null |
|
) |
| |
|
static |
Start a timer
- Parameters
-
string | $name | unique name for timer |
string | null | $label | optional label for this timer |
- Returns
- void
Definition at line 114 of file Debug.php.
References $name, $var, and Xoops\getInstance().
static Xmf\Debug::startTrace |
( |
|
$tracefile = '' , |
|
|
|
$collect_params = '3' , |
|
|
|
$collect_return = 'On' |
|
) |
| |
|
static |
start_trace - turn on xdebug trace
Requires xdebug extension
- Parameters
-
type | $tracefile | file name for trace file |
type | $collect_params | argument for ini_set('xdebug.collect_params',?) Controls display of parameters in trace output |
type | $collect_return | argument for ini_set('xdebug.collect_return',?) Controls display of function return value in trace |
- Returns
- void
Definition at line 216 of file Debug.php.
References XoopsBaseConfig\get().
static Xmf\Debug::stopQueuedTimer |
( |
|
$name | ) |
|
|
static |
Stop a queued timer
- Parameters
-
string | $name | unique name for timer |
- Returns
- void
Definition at line 170 of file Debug.php.
References $name.
static Xmf\Debug::stopTimer |
( |
|
$name | ) |
|
|
static |
static Xmf\Debug::stopTrace |
( |
| ) |
|
|
static |
stop_trace - turn off xdebug trace
Requires xdebug extension
- Returns
- void
Definition at line 235 of file Debug.php.
Xmf\Debug::$timerLabels = array() |
|
staticprivate |
Xmf\Debug::$timerQueue = array() |
|
staticprivate |
Xmf\Debug::$times = array() |
|
staticprivate |
The documentation for this class was generated from the following file: