1 | <?php |
||
20 | class GeocoderDataCollector extends DataCollector |
||
21 | { |
||
22 | /** |
||
23 | * @var ProfilingProvider[] |
||
24 | */ |
||
25 | private $instances = []; |
||
26 | |||
27 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
46 | |||
47 | /** |
||
48 | * Returns an array of collected requests. |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | public function getQueries(): array |
||
56 | |||
57 | /** |
||
58 | * Returns the execution time of all collected requests in seconds. |
||
59 | * |
||
60 | * @return float |
||
61 | */ |
||
62 | public function getTotalDuration() |
||
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getProviders(): array |
||
79 | |||
80 | /** |
||
81 | * @param string $provider |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public function getProviderQueries($provider): array |
||
91 | |||
92 | /** |
||
93 | * @param ProfilingProvider $instance |
||
94 | */ |
||
95 | public function addInstance(ProfilingProvider $instance) |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function getName() |
||
108 | } |
||
109 |