TimeDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
- $data : array<string|int, mixed>|Data
- $cloner : mixed
- $kernel : mixed
- $stopwatch : mixed
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getDuration() : float
- Gets the request elapsed time.
- getEvents() : array<string|int, StopwatchEvent>
- getInitTime() : float
- Gets the initialization time.
- getName() : string
- {@inheritdoc}
- getStartTime() : float
- isStopwatchInstalled() : bool
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- setEvents() : mixed
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
mixed
$cloner
$kernel
private
mixed
$kernel
$stopwatch
private
mixed
$stopwatch
Methods
__construct()
public
__construct([KernelInterface $kernel = null ][, Stopwatch $stopwatch = null ]) : mixed
Parameters
- $kernel : KernelInterface = null
- $stopwatch : Stopwatch = null
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getDuration()
Gets the request elapsed time.
public
getDuration() : float
Return values
floatgetEvents()
public
getEvents() : array<string|int, StopwatchEvent>
Return values
array<string|int, StopwatchEvent>getInitTime()
Gets the initialization time.
public
getInitTime() : float
This is the time spent until the beginning of the request handling.
Return values
floatgetName()
{@inheritdoc}
public
getName() : string
Return values
stringgetStartTime()
public
getStartTime() : float
Return values
floatisStopwatchInstalled()
public
isStopwatchInstalled() : bool
Return values
boollateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
public
reset() : mixed
setEvents()
public
setEvents(array<string|int, StopwatchEvent> $events) : mixed
Parameters
- $events : array<string|int, StopwatchEvent>
-
The request events
cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
DatagetCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner