DatabaseDataCollector
class DatabaseDataCollector implements DataCollectorInterface
A data collector that collects database data that will be shown on the profiler
Properties
$data |
Methods
Log a fetch from the Model Cache
Get the sorted catche fetches by Model type
Get the total number of catche fetches
Get an estimate of the time that the model cache saved in milliseconds
Get the number of times each query was sent to the server
Get the number of duplicated queries
Get the queries made to the database
Get the total duration of the database queries in milliseconds
Returns the name of the collector.
Details
at line line 32
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Request and Response, so that it can be serialized and stored for later retrieval
at line line 46
logQuery(DatabaseQuery $query)
Log a database query
at line line 57
logCacheFetch(string $type, int $id)
Log a fetch from the Model Cache
at line line 71
array
getCacheFetches()
Get the sorted catche fetches by Model type
at line line 82
int
getTotalCacheFetches()
Get the total number of catche fetches
at line line 92
number
estimateTimeSaved()
Get an estimate of the time that the model cache saved in milliseconds
at line line 116
array
getQueryFrequencies()
Get the number of times each query was sent to the server
at line line 138
int
getDuplicatedQueryCount()
Get the number of duplicated queries
at line line 150
DatabaseQuery[]
getQueries()
Get the queries made to the database
at line line 160
float
getDuration()
Get the total duration of the database queries in milliseconds
at line line 176
string
getName()
Returns the name of the collector.