Elgg  Version master
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)
protected

Start the timer (when enabled)

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

Definition at line 43 of file Profilable.php.

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

Ends the timer (when enabled)

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

Definition at line 59 of file Profilable.php.

Elgg\Traits\Debug\hasTimer ( )

Has a timer been set.

Returns
bool

Definition at line 31 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 22 of file Profilable.php.

Variable Documentation

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

Make an object accept a timer.

Definition at line 12 of file Profilable.php.