Elgg
Version 2.3
|
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.
private
Definition at line 9 of file Profiler.php.
Elgg\Profiler::buildTree | ( | Timer | $timer | ) |
Return a tree of time periods from a Timer.
Definition at line 26 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 48 of file Profiler.php.
Elgg\Profiler::formatTree | ( | array | $tree | ) |
Nicely format the elapsed time values.
array | $tree | Result of buildTree() |
Definition at line 76 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 97 of file Profiler.php.
Elgg\Profiler::$duration_format = "%01.6f" |
Definition at line 12 of file Profiler.php.
Elgg\Profiler::$minimum_percentage = 0.2 |
Definition at line 13 of file Profiler.php.
Elgg\Profiler::$percentage_format = "%01.2f" |
Definition at line 11 of file Profiler.php.