We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52fc706 + 468e52a commit e86c2c9Copy full SHA for e86c2c9
profiler/data_collector.rst
@@ -79,6 +79,12 @@ request::
79
:doc:`/testing/profiling`) so it's recommended to return a string which is
80
short, lowercase and without white spaces.
81
82
+The ``collect()`` method is called during the :ref:`kernel.response <component-http-kernel-kernel-response>`
83
+event. If you need to collect data that is only available later, implement
84
+:class:`Symfony\\Component\\HttpKernel\\DataCollector\\LateDataCollectorInterface`
85
+and define the ``lateCollect()`` method, which is invoked just before the profiler
86
+data serialization (during :ref:`kernel.terminate <component-http-kernel-kernel-terminate>` event).
87
+
88
.. _data_collector_tag:
89
90
Enabling Custom Data Collectors
0 commit comments