class TimeDataCollector extends DataCollector implements LateDataCollectorInterface

TimeDataCollector.

Properties

protected $data from DataCollector
protected $kernel
protected $stopwatch

Methods

serialize()

No description

unserialize($data)

No description

cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

callable[]
getCasters()

No description

__construct(KernelInterface $kernel = null, Stopwatch $stopwatch = null)

No description

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

reset()

No description

lateCollect()

Collects data as late as possible.

setEvents(array $events)

Sets the request events.

array
getEvents()

Gets the request events.

float
getDuration()

Gets the request elapsed time.

float
getInitTime()

Gets the initialization time.

int
getStartTime()

Gets the request time.

string
getName()

Returns the name of the collector.

Details

in DataCollector at line 37
serialize()

in DataCollector at line 42
unserialize($data)

Parameters

$data

in DataCollector at line 57
protected Data cloneVar(mixed $var)

Converts the variable into a serializable Data instance.

This array can be displayed in the template using the VarDumper component.

Parameters

mixed $var

Return Value

Data

in DataCollector at line 77
protected callable[] getCasters()

Return Value

callable[] The casters to add to the cloner

at line 29
__construct(KernelInterface $kernel = null, Stopwatch $stopwatch = null)

Parameters

KernelInterface $kernel
Stopwatch $stopwatch

at line 38
collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request
Response $response
Exception $exception

at line 56
reset()

at line 68
lateCollect()

Collects data as late as possible.

at line 81
setEvents(array $events)

Sets the request events.

Parameters

array $events The request events

at line 95
array getEvents()

Gets the request events.

Return Value

array The request events

at line 105
float getDuration()

Gets the request elapsed time.

Return Value

float The elapsed time

at line 123
float getInitTime()

Gets the initialization time.

This is the time spent until the beginning of the request handling.

Return Value

float The elapsed time

at line 137
int getStartTime()

Gets the request time.

Return Value

int The time

at line 145
string getName()

Returns the name of the collector.

Return Value

string The collector name