[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/system/debug/src/DataCollector/ -> ProfileCollector.php (summary)

This file is part of the DebugBar package.

Copyright: (c) 2013 Maxime Bouroumeau-Fuseau
License: For the full copyright and license information, please view the LICENSE
File Size: 319 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProfileCollector:: (13 methods):
  __construct()
  startMeasure()
  hasStartedMeasure()
  stopMeasure()
  addMeasure()
  measure()
  getMeasures()
  getRequestStartTime()
  getRequestEndTime()
  getRequestDuration()
  collect()
  getName()
  getWidgets()


Class: ProfileCollector  - X-Ref

Collects info about the request duration as well as providing
a way to log duration of any operations

__construct(Registry $params)   X-Ref
Constructor.

param: Registry  $params  Parameters.

startMeasure($name, $label = null, $collector = null)   X-Ref
Starts a measure.

param: string       $name       Internal name, used to stop the measure
param: string|null  $label      Public name
param: string|null  $collector  The source of the collector
return: void

hasStartedMeasure($name)   X-Ref
Check a measure exists

param: string  $name  Group name.
return: bool

stopMeasure($name, array $params = [])   X-Ref
Stops a measure.

param: string  $name    Measurement name.
param: array   $params  Parameters
return: void

addMeasure($label, $start, $end, array $params = [], $collector = null)   X-Ref
Adds a measure

param: string       $label      A label.
param: float        $start      Start of request.
param: float        $end        End of request.
param: array        $params     Parameters.
param: string|null  $collector  A collector.
return: void

measure($label, \Closure $closure, $collector = null)   X-Ref
Utility function to measure the execution of a Closure

param: string       $label      A label.
param: \Closure     $closure    A closure.
param: string|null  $collector  A collector.
return: void

getMeasures()   X-Ref
Returns an array of all measures

return: array

getRequestStartTime()   X-Ref
Returns the request start time

return: float

getRequestEndTime()   X-Ref
Returns the request end time

return: float

getRequestDuration()   X-Ref
Returns the duration of a request

return: float

collect()   X-Ref
Called by the DebugBar when data needs to be collected

return: array Collected data

getName()   X-Ref
No description

getWidgets()   X-Ref
Returns a hash where keys are control names and their values
an array of options as defined in {@see \DebugBar\JavascriptRenderer::addControl()}

return: array



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer