Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($prefix='') | |
mark ($label) | |
getMarks () | |
getBuffer () | |
setStart ($startTime=0.0, $startMem=0) | |
Fonctions membres publiques statiques | |
static | getInstance ($prefix='') |
Attributs protégés | |
$start = 0 | |
$prefix = '' | |
$buffer = null | |
$marks = null | |
$previousTime = 0.0 | |
$previousMem = 0.0 | |
Attributs protégés statiques | |
static | $instances = array() |
Utility class to assist in the process of benchmarking the execution of sections of code to understand where time is being spent.
__construct | ( | $prefix = '' | ) |
getBuffer | ( | ) |
Get all profiler mark buffers.
Returns an array of all mark buffers created since the Profiler object was instantiated. Marks are strings as per Profiler::mark().
Références $buffer.
|
static |
Returns the global Profiler object, only creating it if it doesn't already exist.
string | $prefix | Prefix used to distinguish profiler objects. |
Références $prefix.
Référencé par CMSApplication\__construct(), ProfileCollector\collect(), HtmlView\display(), Access\getAssetRules(), Indexer\getState(), Access\preloadComponents(), Access\preloadPermissions(), ModuleHelper\renderModule(), et ModuleHelper\renderRawModule().
getMarks | ( | ) |
Get all profiler marks.
Returns an array of all marks created since the Profiler object was instantiated. Marks are objects as per JProfiler::mark().
mark | ( | $label | ) |
setStart | ( | $startTime = 0.0 , |
|
$startMem = 0 |
|||
) |
Sets the start time.
double | $startTime | Unix timestamp in microseconds for setting the Profiler start time. |
int | $startMem | Memory amount in bytes for setting the Profiler start memory. |
Références $startMem, $startTime, et $this.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |