TimeDataCollector
class TimeDataCollector extends DataCollector implements LateDataCollectorInterface
TimeDataCollector.
Properties
protected | $data | from DataCollector | |
protected | $kernel | ||
protected | $stopwatch |
Methods
cloneVar(mixed $var)
Converts the variable into a serializable Data instance.
from DataCollector
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
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.
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response.