Elgg
Version 3.0
|
Analyzes duration of functions, queries, and processes. More...
Public Member Functions | |
buildTree (Timer $timer) | |
Return a tree of time periods from a Timer. More... | |
flattenTree (array &$list=[], array $tree=[], $prefix= '') | |
Turn the tree of times into a sorted list. More... | |
formatTree (array $tree) | |
Nicely format the elapsed time values. More... | |
Static Public Member Functions | |
static | handlePageOutput ($hook, $type, $html, $params) |
Append a SCRIPT element to the page output. More... | |
Public Attributes | |
$percentage_format = "%01.2f" | |
$duration_format = "%01.6f" | |
$minimum_percentage = 0.2 | |
Analyzes duration of functions, queries, and processes.
Definition at line 12 of file Profiler.php.
Elgg\Profiler::buildTree | ( | Timer | $timer | ) |
Return a tree of time periods from a Timer.
Definition at line 29 of file Profiler.php.
Elgg\Profiler::flattenTree | ( | array & | $list = [] , |
array | $tree = [] , |
||
$prefix = '' |
|||
) |
Turn the tree of times into a sorted list.
array | $list | Output list of times to populate |
array | $tree | Result of buildTree() |
string | $prefix | Prefix of period string. Leave empty. |
Definition at line 51 of file Profiler.php.
Elgg\Profiler::formatTree | ( | array | $tree | ) |
Nicely format the elapsed time values.
array | $tree | Result of buildTree() |
Definition at line 79 of file Profiler.php.
|
static |
Append a SCRIPT element to the page output.
string | $hook | "output" |
string | $type | "page" |
string | $html | Full page HTML |
array | $params | Hook params |
Definition at line 100 of file Profiler.php.
Elgg\Profiler::$duration_format = "%01.6f" |
Definition at line 15 of file Profiler.php.
Elgg\Profiler::$minimum_percentage = 0.2 |
Definition at line 16 of file Profiler.php.
Elgg\Profiler::$percentage_format = "%01.2f" |
Definition at line 14 of file Profiler.php.