Capture timing info for profiling.
More...
Capture timing info for profiling.
private
Definition at line 9 of file Timer.php.
Elgg\Timer::begin |
( |
array |
$keys | ) |
|
Record the start time of a period.
- Parameters
-
string[] | $keys Keys to identify period. E.g. ['startup', FUNCTION] |
- Returns
- void
Definition at line 21 of file Timer.php.
Elgg\Timer::end |
( |
array |
$keys | ) |
|
Record the end time of a period.
- Parameters
-
string[] | $keys Keys to identify period. E.g. ['startup', FUNCTION] |
- Returns
- void
Definition at line 31 of file Timer.php.
Get the tree of recorded start/end times.
- Returns
- array
Definition at line 51 of file Timer.php.
Elgg\Timer::hasEnded |
( |
array |
$keys | ) |
|
Has the end of the period been recorded?
- Parameters
-
string[] | $keys Keys to identify period. E.g. ['startup', FUNCTION] |
- Returns
- bool
Definition at line 41 of file Timer.php.
const Elgg\Timer::MARKER_BEGIN = ':begin' |
const Elgg\Timer::MARKER_END = ':end' |
The documentation for this class was generated from the following file: