Capture timing info for profiling.
More...
Capture timing info for profiling.
Definition at line 10 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 22 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 32 of file Timer.php.
Get the tree of recorded start/end times.
- Returns
- array
Definition at line 52 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 42 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: