Elgg  Version 4.3
Functions | Variables
Elgg\Traits\Debug Namespace Reference

Functions

 setTimer (Timer $timer)
 Set a timer that should collect begin/end times for events. More...
 
 hasTimer ()
 Has a timer been set. More...
 
 beginTimer (array $keys)
 Start the timer (when enabled) More...
 
 endTimer (array $keys)
 Ends the timer (when enabled) More...
 

Variables

trait Profilable
 Make an object accept a timer. More...
 

Function Documentation

Elgg\Traits\Debug\beginTimer ( array  $keys)

Start the timer (when enabled)

Parameters
array$keysKeys to identify period. E.g. ['startup', FUNCTION]
Returns
void
See also
::begin()

Definition at line 46 of file Profilable.php.

Elgg\Traits\Debug\endTimer ( array  $keys)

Ends the timer (when enabled)

Parameters
array$keysKeys to identify period. E.g. ['startup', FUNCTION]
Returns
void
See also
::end()

Definition at line 62 of file Profilable.php.

Elgg\Traits\Debug\hasTimer ( )

Has a timer been set.

Returns
bool

Definition at line 34 of file Profilable.php.

Elgg\Traits\Debug\setTimer ( Timer  $timer)

Set a timer that should collect begin/end times for events.

Parameters
Timer$timerTimer
Returns
void

Definition at line 25 of file Profilable.php.

Variable Documentation

trait Elgg::Traits::Debug\Profilable
Initial value:
{
private $timer
$timer
Definition: pending.php:29

Make an object accept a timer.

Definition at line 12 of file Profilable.php.